Skip to content

Commit b76591c

Browse files
authored
Merge pull request #1430 from PrincetonUniversity/1178-ci2
1178 - check consistency between mesh coupled_interface and adjacency graph
2 parents 7fa54b1 + 950835e commit b76591c

File tree

20 files changed

+38
-998
lines changed

20 files changed

+38
-998
lines changed

CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ add_library(
246246
src/io/mesh/impl/fortran/dim2/read_elements.cpp
247247
src/io/mesh/impl/fortran/dim2/read_material_properties.cpp
248248
src/io/mesh/impl/fortran/dim2/read_mesh_database.cpp
249-
src/io/mesh/impl/fortran/dim2/read_interfaces.cpp
250249
src/io/mesh/impl/fortran/dim2/read_parameters.cpp
251250
src/io/mesh/impl/fortran/dim2/read_adjacency_graph.cpp
252251
# Fortran 3D meshfem part
@@ -340,17 +339,15 @@ endif()
340339
add_library(
341340
mesh
342341
# 2-D
343-
src/mesh/dim2/mesh.cpp
344342
src/mesh/dim2/boundaries/forcing_boundaries.cpp
345343
src/mesh/dim2/boundaries/absorbing_boundaries.cpp
346344
src/mesh/dim2/boundaries/acoustic_free_surface.cpp
347345
src/mesh/dim2/elements/tangential_elements.cpp
348346
src/mesh/dim2/elements/axial_elements.cpp
349347
# src/mesh/mpi_interfaces/mpi_interfaces.cpp
350-
src/mesh/dim2/coupled_interfaces/interface_container.cpp
351-
src/mesh/dim2/coupled_interfaces/coupled_interfaces.cpp
352348
src/mesh/dim2/tags/tags.cpp
353349
src/mesh/dim2/adjacency_graph/assert_symmetry.cpp
350+
src/mesh/dim2/mesh.cpp
354351
# 3-D
355352

356353
src/mesh/dim3/adjacency_graph/assert_symmetry.cpp

docs/sections/api/mesh/dim2/coupled_interfaces/index.rst

Lines changed: 0 additions & 15 deletions
This file was deleted.

docs/sections/api/mesh/dim2/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ SPECFEM++ 2D Mesh
1313

1414
boundaries/index
1515
control_nodes/index
16-
coupled_interfaces/index
1716
materials/index
1817
tags/index

docs/sections/api/mesh/dim3/coupled_interfaces/index.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/sections/api/mesh/dim3/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ What the 3D mesh struct holds
2222
materials/index
2323
mass_matrix/index
2424
boundaries/index
25-
coupled_interfaces/index
2625
coloring/index
2726
inner_outer/index
2827
mpi/index

include/io/mesh/impl/fortran/dim2/read_interfaces.hpp

Lines changed: 0 additions & 44 deletions
This file was deleted.

include/mesh/dim2/coupled_interfaces/coupled_interfaces.hpp

Lines changed: 0 additions & 82 deletions
This file was deleted.

include/mesh/dim2/coupled_interfaces/interface_container.hpp

Lines changed: 0 additions & 94 deletions
This file was deleted.

include/mesh/dim2/coupled_interfaces/interface_container.tpp

Lines changed: 0 additions & 36 deletions
This file was deleted.

include/mesh/dim2/mesh.hpp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include "adjacency_graph/adjacency_graph.hpp"
44
#include "boundaries/boundaries.hpp"
55
#include "control_nodes/control_nodes.hpp"
6-
#include "coupled_interfaces/coupled_interfaces.hpp"
76
#include "elements/axial_elements.hpp"
87
#include "elements/tangential_elements.hpp"
98
#include "enumerations/dimension.hpp"
@@ -36,10 +35,6 @@ template <> struct mesh<specfem::dimension::type::dim2> {
3635
///< simulation launch
3736
///< parameters (never used)
3837

39-
specfem::mesh::coupled_interfaces<dimension>
40-
coupled_interfaces; ///< Struct to store
41-
///< coupled interfaces
42-
4338
specfem::mesh::boundaries<dimension> boundaries; ///< Struct to store
4439
///< information at the
4540
///< boundaries
@@ -109,17 +104,16 @@ template <> struct mesh<specfem::dimension::type::dim2> {
109104
mesh(const int npgeo, const int nspec, const int nproc,
110105
const specfem::mesh::control_nodes<dimension> &control_nodes,
111106
const specfem::mesh::parameters<dimension> &parameters,
112-
const specfem::mesh::coupled_interfaces<dimension> &coupled_interfaces,
113107
const specfem::mesh::boundaries<dimension> &boundaries,
114108
const specfem::mesh::tags<dimension> &tags,
115109
const specfem::mesh::elements::tangential_elements<dimension>
116110
&tangential_nodes,
117111
const specfem::mesh::elements::axial_elements<dimension> &axial_nodes,
118112
const specfem::mesh::materials<dimension> &materials)
119113
: npgeo(npgeo), nspec(nspec), nproc(nproc), control_nodes(control_nodes),
120-
parameters(parameters), coupled_interfaces(coupled_interfaces),
121-
boundaries(boundaries), tags(tags), tangential_nodes(tangential_nodes),
122-
axial_nodes(axial_nodes), materials(materials) {};
114+
parameters(parameters), boundaries(boundaries), tags(tags),
115+
tangential_nodes(tangential_nodes), axial_nodes(axial_nodes),
116+
materials(materials) {};
123117
///@} // Constructors
124118

125119
/**
@@ -160,7 +154,8 @@ template <> struct mesh<specfem::dimension::type::dim2> {
160154
* initialized and all components (control nodes, materials, boundaries)
161155
* have been populated from MESHFEM2D database files.
162156
*/
163-
void setup_coupled_interfaces();
157+
void setup_coupled_interfaces(
158+
const std::set<std::pair<int, int> > &coupled_interfaces);
164159
};
165160
} // namespace mesh
166161
} // namespace specfem

0 commit comments

Comments
 (0)