Skip to content

Commit

Permalink
wrong file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
cwsmith committed Feb 2, 2024
1 parent 2bc7ded commit 625e170
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/mixed_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void test_finer_meshes(CommPtr comm, std::string mesh_dir) {
test_adjs(&mesh);
test_tags(&mesh);
auto maxType = Topo_type::pyramid;
Omega_h::vtk::write_vtu("./" + name + ".vtk", &mesh, maxType);
Omega_h::vtk::write_vtu("./" + name + ".vtu", &mesh, maxType);

//tet=1246, hex=8, wedge=0, pyramid=229
name = std::string("/localconcave_tutorial_mixedvol_geomsim2");
Expand All @@ -173,7 +173,7 @@ void test_finer_meshes(CommPtr comm, std::string mesh_dir) {
mesh = meshsim::readMixed(mesh_in, model_in, comm);
test_adjs(&mesh);
test_tags(&mesh);
Omega_h::vtk::write_vtu("./" + name + ".vtk", &mesh, maxType);
Omega_h::vtk::write_vtu("./" + name + ".vtu", &mesh, maxType);

//tet=3274, hex=68, wedge=0, pyramid=171
name = std::string("/localconcave_tutorial_mixedvol_geomsim");
Expand All @@ -182,7 +182,7 @@ void test_finer_meshes(CommPtr comm, std::string mesh_dir) {
mesh = meshsim::readMixed(mesh_in, model_in, comm);
test_adjs(&mesh);
test_tags(&mesh);
Omega_h::vtk::write_vtu("./" + name + ".vtk", &mesh, maxType);
Omega_h::vtk::write_vtu("./" + name + ".vtu", &mesh, maxType);

//tet=4437, hex=0, wedge=0, pyramid=0
mesh_in = std::string(mesh_dir) +
Expand Down Expand Up @@ -216,38 +216,38 @@ int main(int argc, char** argv) {
auto mesh = meshsim::readMixed(mesh_in, model_in, comm);
test_adjs(&mesh);
test_tags(&mesh);
Omega_h::vtk::write_vtu("wedges.vtk", &mesh, Topo_type::wedge);
Omega_h::vtk::write_vtu("wedges.vtu", &mesh, Topo_type::wedge);

mesh_in = std::string(mesh_dir) + "/Example_pym.sms";
model_in = std::string(mesh_dir) + "/Example_pym.smd";
mesh = meshsim::readMixed(mesh_in, model_in, comm);
test_adjs(&mesh);
test_tags(&mesh);
Omega_h::vtk::write_vtu("pyramids.vtk", &mesh, Topo_type::pyramid);
Omega_h::vtk::write_vtu("pyramids.vtu", &mesh, Topo_type::pyramid);

mesh_in = std::string(mesh_dir) + "/Example_tet_wedge.sms";
model_in = std::string(mesh_dir) + "/Example_tet_wedge.smd";
mesh = meshsim::readMixed(mesh_in, model_in, comm);
test_adjs(&mesh);
test_tags(&mesh);
auto maxType = Topo_type::wedge;
Omega_h::vtk::write_vtu("tet_wedge.vtk", &mesh, maxType);
Omega_h::vtk::write_vtu("tet_wedge.vtu", &mesh, maxType);

mesh_in = std::string(mesh_dir) + "/Example_pym_hex.sms";
model_in = std::string(mesh_dir) + "/Example_pym_hex.smd";
mesh = meshsim::readMixed(mesh_in, model_in, comm);
test_adjs(&mesh);
test_tags(&mesh);
maxType = Topo_type::pyramid;
Omega_h::vtk::write_vtu("pym_hex.vtk", &mesh, maxType);
Omega_h::vtk::write_vtu("pym_hex.vtu", &mesh, maxType);

mesh_in = std::string(mesh_dir) + "/Example_allType.sms";
model_in = std::string(mesh_dir) + "/Example_allType.smd";
mesh = meshsim::readMixed(mesh_in, model_in, comm);
test_adjs(&mesh);
test_tags(&mesh);
maxType = Topo_type::pyramid;
Omega_h::vtk::write_vtu("alltypes.vtk", &mesh, maxType);
Omega_h::vtk::write_vtu("alltypes.vtu", &mesh, maxType);

test_finer_meshes(comm, mesh_dir);

Expand Down

0 comments on commit 625e170

Please sign in to comment.