Skip to content

Commit 17ad033

Browse files
Nightly Botcwsmith
Nightly Bot
authored andcommitted
Merging develop into master
2 parents 7a095b2 + d8e7334 commit 17ad033

File tree

7 files changed

+19
-21
lines changed

7 files changed

+19
-21
lines changed

Diff for: .github/workflows/cmake.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
build:
99
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111
strategy:
1212
fail-fast: false
1313
matrix:

Diff for: CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ endif()
66
# This is the top level CMake file for the SCOREC build
77
cmake_minimum_required(VERSION 3.8)
88

9-
project(SCOREC VERSION 3.0.2 LANGUAGES CXX C)
9+
project(SCOREC VERSION 3.0.3 LANGUAGES CXX C)
1010

1111
include(cmake/bob.cmake)
1212
include(cmake/xsdk.cmake)

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ For more information, start at our
5151
### Who do I talk to? ###
5252

5353
* If you have a usage question or have found a bug please post an [issue](https://github.com/SCOREC/core/issues).
54-
* Otherwise, email [Cameron Smith](https://www.scorec.rpi.edu/~cwsmith) and pumi@scorec.rpi.edu.
54+
* Otherwise, email scorec-pumi@lists.rpi.edu.
5555

5656
### Citing PUMI
5757

Diff for: test/capCheckParam.cc

+4-5
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ void checkParametrization(MeshDatabaseInterface* mdb, GeometryDatabaseInterface*
2828
int main(int argc, char** argv)
2929
{
3030
MPI_Init(&argc, &argv);
31-
PCU_Comm_Init();
31+
pcu::PCU *PCUobj = new pcu::PCU(MPI_COMM_WORLD);
3232

3333
if (argc != 2) {
34-
if(0==PCU_Comm_Self())
35-
std::cerr << "usage: " << argv[0]
36-
<< " <cre file .cre>\n";
34+
if (PCUobj->Self() == 0)
35+
std::cerr << "usage: " << argv[0] << " <cre file .cre>\n";
3736
return EXIT_FAILURE;
3837
}
3938

@@ -112,7 +111,7 @@ int main(int argc, char** argv)
112111
// check parametrization using capstone apis
113112
checkParametrization(m, g);
114113

115-
PCU_Comm_Free();
114+
delete PCUobj;
116115
MPI_Finalize();
117116
}
118117

Diff for: test/capGeomTest.cc

+6-7
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ void visualizeEdges(gmi_model* model, int n, const char* fileName, pcu::PCU *PCU
4949
int main(int argc, char** argv)
5050
{
5151
MPI_Init(&argc, &argv);
52-
{
53-
pcu::PCU PCUObj = pcu::PCU(MPI_COMM_WORLD);
52+
pcu::PCU *PCUObj = new pcu::PCU(MPI_COMM_WORLD);
5453

5554
gmi_register_mesh();
5655
gmi_register_null();
@@ -118,7 +117,7 @@ int main(int argc, char** argv)
118117
gmi_register_cap();
119118

120119

121-
apf::Mesh2* mesh0 = apf::createMesh(m,g,&PCUObj);
120+
apf::Mesh2* mesh0 = apf::createMesh(m,g,PCUObj);
122121
apf::writeVtkFiles("mesh_no_param", mesh0);
123122

124123
gmi_model* model = gmi_import_cap(g);
@@ -139,15 +138,15 @@ int main(int argc, char** argv)
139138
while( (ge = gmi_next(model, gi)) ){
140139
std::stringstream name_str;
141140
name_str << "face_" << gmi_tag(model, ge) << "_mesh";
142-
visualizeFace(model, ge, 100, 100, name_str.str().c_str(), &PCUObj);
141+
visualizeFace(model, ge, 100, 100, name_str.str().c_str(), PCUObj);
143142
}
144143
gmi_end(model, gi);
145144

146145
printf("------------------------\n");
147146
printf("creating mesh with param field\n");
148147

149148

150-
apf::Mesh2* mesh = apf::createMesh(m,g,&PCUObj);
149+
apf::Mesh2* mesh = apf::createMesh(m,g,PCUObj);
151150
apf::Field* pf = apf::createFieldOn(mesh, "param_field", apf::VECTOR);
152151
apf::Field* idf = apf::createFieldOn(mesh, "id", apf::SCALAR);
153152
apf::MeshEntity* e;
@@ -165,7 +164,7 @@ int main(int argc, char** argv)
165164

166165
gmi_cap_stop();
167166

168-
}
167+
delete PCUObj;
169168
MPI_Finalize();
170169
}
171170

@@ -273,7 +272,7 @@ void visualizeFace(gmi_model* model, gmi_ent* entity, int n, int m, const char*
273272

274273
// make the vertexes and set the coordinates using the array
275274
std::vector<ma::Entity*> vs;
276-
apf::Mesh2* mesh = apf::makeEmptyMdsMesh(gmi_load(".null"), 2, false, &PCUObj);
275+
apf::Mesh2* mesh = apf::makeEmptyMdsMesh(gmi_load(".null"), 2, false, PCUObj);
277276
for (size_t i = 0; i < ps.size(); i++) {
278277
ma::Entity* vert = mesh->createVert(0);
279278
mesh->setPoint(vert, 0, ps[i]);

Diff for: test/cap_closestPoint.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
int main (int argc, char* argv[]) {
1010
MPI_Init(&argc, &argv);
11-
PCU_Comm_Init();
11+
pcu::PCU* PCUObj = new pcu::PCU(MPI_COMM_WORLD);
1212
lion_set_verbosity(1);
1313
gmi_register_cap();
1414

@@ -19,7 +19,7 @@ int main (int argc, char* argv[]) {
1919
"Mesh Database : Create", "Attribution Database : Create");
2020
cs.load_files(v_string(1, creFile));
2121
// 2. CreateMesh.
22-
apf::Mesh2* m = apf::createMesh(cs.get_mesh(), cs.get_geometry());
22+
apf::Mesh2* m = apf::createMesh(cs.get_mesh(), cs.get_geometry(), PCUObj);
2323

2424
PCU_ALWAYS_ASSERT(m->canGetClosestPoint());
2525

@@ -34,6 +34,6 @@ int main (int argc, char* argv[]) {
3434
PCU_ALWAYS_ASSERT((to - apf::Vector3(0.5, 0.34, 0.5)).getLength() < 0.0001);
3535

3636
apf::destroyMesh(m);
37-
PCU_Comm_Free();
37+
delete PCUObj;
3838
MPI_Finalize();
3939
}

Diff for: test/cap_inClosureOf.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
int main (int argc, char* argv[]) {
1010
MPI_Init(&argc, &argv);
11-
PCU_Comm_Init();
11+
pcu::PCU *PCUObj = new pcu::PCU(MPI_COMM_WORLD);
1212
lion_set_verbosity(1);
1313
gmi_register_cap();
1414

@@ -19,7 +19,7 @@ int main (int argc, char* argv[]) {
1919
"Mesh Database : Create", "Attribution Database : Create");
2020
cs.load_files(v_string(1, creFile));
2121
// 2. CreateMesh.
22-
apf::Mesh2* m = apf::createMesh(cs.get_mesh(), cs.get_geometry());
22+
apf::Mesh2* m = apf::createMesh(cs.get_mesh(), cs.get_geometry(), PCUObj);
2323
// 3. Get region 1 ModelEntity*.
2424
apf::ModelEntity* rgn = m->findModelEntity(3, 1);
2525
PCU_ALWAYS_ASSERT(rgn);
@@ -44,6 +44,6 @@ int main (int argc, char* argv[]) {
4444
PCU_ALWAYS_ASSERT(m->isInClosureOf(m->findModelEntity(0, 8), f1));
4545

4646
apf::destroyMesh(m);
47-
PCU_Comm_Free();
47+
delete PCUObj;
4848
MPI_Finalize();
4949
}

0 commit comments

Comments
 (0)