Skip to content

Commit 4c02faf

Browse files
committed
bugfix
1 parent fb44445 commit 4c02faf

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
@@ -1062,7 +1062,7 @@ void geom_epsilon::eff_chi1inv_matrix(meep::component c, symmetric_matrix *chi1i
10621062

10631063
/* check for trivial case of only one object/material */
10641064
if (material_type_equal(mat, mat_behind)) {
1065-
if (is_variable(mat)) eval_material_pt(mat, p_mat);
1065+
if (is_variable(mat)) eval_material_pt(mat, vec_to_vector3(v.center()));
10661066
goto trivial;
10671067
}
10681068

0 commit comments

Comments
 (0)