Skip to content

Commit

Permalink
fix failing c tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alec Hammond committed Sep 30, 2021
1 parent 65758ec commit fbd795f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/meepgeom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1934,11 +1934,11 @@ geom_epsilon* make_geom_epsilon(meep::structure *s, geometric_object_list *g, ve

/* set the materials without previously creating
a geom_eps object */
void set_materials_from_geometry(meep::structure *s, geometric_object_list *g, vector3 center,
void set_materials_from_geometry(meep::structure *s, geometric_object_list g, vector3 center,
bool use_anisotropic_averaging, double tol, int maxeval,
bool _ensure_periodicity, material_type _default_material,
absorber_list alist, material_type_list extra_materials) {
meep_geom::geom_epsilon *geps = meep_geom::make_geom_epsilon(s, g, center, _ensure_periodicity,
meep_geom::geom_epsilon *geps = meep_geom::make_geom_epsilon(s, &g, center, _ensure_periodicity,
_default_material, extra_materials);
set_materials_from_geom_epsilon(s, geps, center, use_anisotropic_averaging, tol,
maxeval, alist);
Expand Down
2 changes: 1 addition & 1 deletion src/meepgeom.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ geom_epsilon* make_geom_epsilon(meep::structure *s, geometric_object_list *g,
material_type _default_material = vacuum,
material_type_list extra_materials = material_type_list());
//, geometric_object_list g, material_type_list extra_materials
void set_materials_from_geometry(meep::structure *s, geometric_object_list *g,
void set_materials_from_geometry(meep::structure *s, geometric_object_list g,
vector3 center = make_vector3(),
bool use_anisotropic_averaging = true,
double tol = DEFAULT_SUBPIXEL_TOL,
Expand Down

0 comments on commit fbd795f

Please sign in to comment.