Skip to content

Commit

Permalink
rm obsolete references to meepgeom::is_file
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Jun 30, 2021
1 parent 5fd8cf6 commit d67b1f2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
7 changes: 2 additions & 5 deletions libpympb/pympb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,9 @@ int mode_solver::mean_epsilon(symmetric_matrix *meps, symmetric_matrix *meps_inv

bool o1_is_var = o1 && meep_geom::is_variable(o1->material);
bool o2_is_var = o2 && meep_geom::is_variable(o2->material);
bool default_is_var_or_file =
meep_geom::is_variable(default_material) || meep_geom::is_file(default_material);
bool default_is_var = meep_geom::is_variable(default_material);

if (o1_is_var || o2_is_var ||
(default_is_var_or_file &&
(!o1 || !o2 || meep_geom::is_file(o1->material) || meep_geom::is_file(o2->material)))) {
if (o1_is_var || o2_is_var || (default_is_var && (!o1 || !o2))) {
return 0; /* arbitrary material functions are non-analyzable */
}

Expand Down
2 changes: 0 additions & 2 deletions python/meep.i
Original file line number Diff line number Diff line change
Expand Up @@ -1464,8 +1464,6 @@ void _get_gradient(PyObject *grad, PyObject *fields_a, PyObject *fields_f, PyObj
%ignore material_type_equal;
%ignore is_variable;
%ignore is_variable;
%ignore is_file;
%ignore is_file;
%ignore is_medium;
%ignore is_medium;
%ignore is_metal;
Expand Down
2 changes: 0 additions & 2 deletions src/meepgeom.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,6 @@ bool is_material_grid(material_type mt);
bool is_material_grid(void *md);
bool is_variable(material_type mt);
bool is_variable(void *md);
bool is_file(material_type md);
bool is_file(void *md);
bool is_medium(material_type md, medium_struct **m);
bool is_medium(void *md, medium_struct **m);
bool is_metal(meep::field_type ft, const material_type *material);
Expand Down

0 comments on commit d67b1f2

Please sign in to comment.