Skip to content

Commit

Permalink
Add mds adapts to capVol test matrix
Browse files Browse the repository at this point in the history
- Disable verify() for non-volume meshes.

Signed-off-by: Aiden Woodruff <woodra@rpi.edu>
  • Loading branch information
bobpaw committed Sep 12, 2024
1 parent db47193 commit 5792912
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/capVol.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ int main(int argc, char** argv) {
ma::Mesh* adaptMesh = apfCapMesh;
if (mds_flag) {
adaptMesh = apf::createMdsMesh(apfCapMesh->getModel(), apfCapMesh);
adaptMesh->verify();
apf::reorderMdsMesh(adaptMesh);
adaptMesh->verify();
// APF default routine will typically fail to verify surface meshes.
if (volume_flag) adaptMesh->verify();
if (write_flag) {
apf::writeVtkFiles("core_capVol_mds.vtk", adaptMesh);
}
Expand Down
8 changes: 8 additions & 0 deletions test/testing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -895,4 +895,12 @@ if(ENABLE_CAPSTONE)
mpi_test(capVolWing 1 ./capVol -vg 2 ${MESHES}/cap/wing_surf_only.cre)
mpi_test(capVolCube 1 ./capVol -vg 3 ${MESHES}/cap/cube_surf_only.cre)
mpi_test(capVolCyl2 1 ./capVol -vg 4 ${MESHES}/cap/cyl_surf_only.cre)
mpi_test(capCylMds 1 ./capVol -vm 1 ${MESHES}/cap/cyl_surf_only.cre)
mpi_test(capWingMds 1 ./capVol -vm 2 ${MESHES}/cap/wing_surf_only.cre)
mpi_test(capCubeMds 1 ./capVol -vm 3 ${MESHES}/cap/cube_surf_only.cre)
mpi_test(capCyl2Mds 1 ./capVol -vm 4 ${MESHES}/cap/cyl_surf_only.cre)
mpi_test(capVolCylMds 1 ./capVol -vgm 1 ${MESHES}/cap/cyl_surf_only.cre)
mpi_test(capVolWingMds 1 ./capVol -vgm 2 ${MESHES}/cap/wing_surf_only.cre)
mpi_test(capVolCubeMds 1 ./capVol -vgm 3 ${MESHES}/cap/cube_surf_only.cre)
mpi_test(capVolCyl2Mds 1 ./capVol -vgm 4 ${MESHES}/cap/cyl_surf_only.cre)
endif()

0 comments on commit 5792912

Please sign in to comment.