Skip to content

Commit 49f7d07

Browse files
committed
bugfix
1 parent df64e0b commit 49f7d07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/meepgeom.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ void geom_epsilon::eff_chi1inv_matrix(meep::component c, symmetric_matrix *chi1i
938938

939939
/* check for trivial case of only one object/material */
940940
if (material_type_equal(mat, mat_behind)) {
941-
if (is_variable(mat)) eval_material_pt(mat, p_mat);
941+
if (is_variable(mat)) eval_material_pt(mat, vec_to_vector3(v.center()));
942942
goto trivial;
943943
}
944944

0 commit comments

Comments
 (0)