diff --git a/include/libgmshdg/gmsh_io.h b/include/libgmshdg/gmsh_io.h index 6d76d48486b9b6d026adc3028b5c75227f30e09f..c33ac53e6bf7304ff5add92c4a8e899ec892a651 100644 --- a/include/libgmshdg/gmsh_io.h +++ b/include/libgmshdg/gmsh_io.h @@ -154,6 +154,13 @@ struct surface_descriptor std::vector<face_number> face_numbers; + surface_descriptor() + : surface_entity(0), adjacent_volume_entity(0) +#ifdef USE_MPI + , parent_entity(-1) +#endif /* USE_MPI */ + {} + void add_face(size_t local_num, size_t global_num) { face_number fn; diff --git a/include/maxwell/maxwell_common.h b/include/maxwell/maxwell_common.h index 2e013d03fbba8e0b5999d6bd8a973faf18116684..1e902e1efef6f48c4ab87530bae16a7a8946607e 100644 --- a/include/maxwell/maxwell_common.h +++ b/include/maxwell/maxwell_common.h @@ -152,7 +152,6 @@ eval_boundary_sources_new(const model& mod, const parameter_loader& mpl, auto etag = e.material_tag(); auto mtag = sd.material_tag(); - switch ( mpl.boundary_type( mtag ) ) { case boundary_condition::UNSPECIFIED: