Skip to content

Commit cf3422d

Browse files
authored
Remove _cpp from outputs (and tests) (SimVascular#200)
1 parent 69a87f2 commit cf3422d

File tree

12 files changed

+23
-23
lines changed

12 files changed

+23
-23
lines changed

Code/Source/svFSI/distribute.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ void part_msh(Simulation* simulation, int iM, mshType& lM, Vector<int>& gmtl, in
15821582

15831583
Vector<int> part(nEl);
15841584

1585-
std::string fTmp = chnl_mod.appPath + "partitioning_" + lM.name + "_cpp.bin";
1585+
std::string fTmp = chnl_mod.appPath + "partitioning_" + lM.name + ".bin";
15861586
bool flag = false;
15871587
FILE *fp = nullptr;
15881588
if (com_mod.rmsh.isReqd) {

Code/Source/svFSI/initialize.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ void initialize(Simulation* simulation, Vector<double>& timeP)
639639

640640
} else {
641641
if (com_mod.stFileFlag) {
642-
std::string fTmp = com_mod.stFileName + "_last_cpp.bin";
642+
std::string fTmp = com_mod.stFileName + "_last.bin";
643643

644644
if (FILE *file = fopen(fTmp.c_str(), "r")) {
645645
fclose(file);
@@ -702,8 +702,8 @@ void initialize(Simulation* simulation, Vector<double>& timeP)
702702

703703
for (int iM = 0; iM < nMsh; iM++) {
704704
if (cm.mas(cm_mod)) {
705-
std::string fTmp = chnl_mod.appPath + "partitioning_" + com_mod.msh[iM].name + "_cpp.bin";
706-
std::string sTmp = chnl_mod.appPath + "partitioning_" + com_mod.msh[iM].name + "_" + std::to_string(com_mod.cTS) + "_cpp.bin";
705+
std::string fTmp = chnl_mod.appPath + "partitioning_" + com_mod.msh[iM].name + ".bin";
706+
std::string sTmp = chnl_mod.appPath + "partitioning_" + com_mod.msh[iM].name + "_" + std::to_string(com_mod.cTS) + ".bin";
707707

708708
if (FILE *file = fopen(fTmp.c_str(), "r")) {
709709
fclose(file);

Code/Source/svFSI/output.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ void write_restart(Simulation* simulation, std::array<double,3>& timeP)
232232
int fid = 27;
233233
int myID = cm.tF(cm_mod);
234234

235-
auto fName = stFileName + "_last_cpp.bin";
235+
auto fName = stFileName + "_last.bin";
236236
auto tmpS = fName;
237237
#ifdef debug_write_restart
238238
dmsg;
@@ -255,7 +255,7 @@ void write_restart(Simulation* simulation, std::array<double,3>& timeP)
255255
} else {
256256
sprintf(fName_num, "%03d", cTS);
257257
}
258-
fName = stFileName + "_" + fName_num + "_cpp.bin";
258+
fName = stFileName + "_" + fName_num + ".bin";
259259
}
260260

261261
// Create the file.

Code/Source/svFSI/remesh.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ void dist_msh_srf(ComMod& com_mod, ChnlMod& chnl_mod, faceType& lFa, mshType& lM
166166
}
167167

168168
if (iOpt == 1) {
169-
std::string fTmp = sTmp + "/" + lM.fa[iFa].name + "_" + std::to_string(rmsh.rTS) + "_cpp.vtp";
169+
std::string fTmp = sTmp + "/" + lM.fa[iFa].name + "_" + std::to_string(rmsh.rTS) + ".vtp";
170170
Vector<int> incNd(lM.gnNo);
171171

172172
for (int a = 0; a < lM.fa[iFa].nNo; a++) {
@@ -1466,7 +1466,7 @@ void remesh_restart(Simulation* simulation)
14661466
auto& stFileName = com_mod.stFileName;
14671467
auto& rmsh = com_mod.rmsh;
14681468

1469-
auto sTmp = stFileName + "_last_cpp.bin";
1469+
auto sTmp = stFileName + "_last.bin";
14701470
#ifdef debug_remesh_restart
14711471
dmsg << "rmsh.rTS: " << rmsh.rTS;
14721472
dmsg << "tDof: " << com_mod.tDof;
@@ -1485,7 +1485,7 @@ void remesh_restart(Simulation* simulation)
14851485

14861486
// Write something.
14871487
//
1488-
auto fTmp = stFileName + "_" + std::to_string(rmsh.rTS) + "_cpp.bin";
1488+
auto fTmp = stFileName + "_" + std::to_string(rmsh.rTS) + ".bin";
14891489
auto const recLn = com_mod.recLn;
14901490
const bool dFlag = com_mod.dFlag;
14911491
auto& timeP = com_mod.timeP;
@@ -1715,7 +1715,7 @@ void remesh_restart(Simulation* simulation)
17151715
dist_msh_srf(com_mod, chnl_mod, tMsh.fa[0], msh, 1);
17161716

17171717
sTmp = chnl_mod.appPath + "/" + ".remesh_tmp.dir";
1718-
fTmp = sTmp + "/" + msh.name + "_" + std::to_string(rmsh.rTS) + "_cpp.vtu";
1718+
fTmp = sTmp + "/" + msh.name + "_" + std::to_string(rmsh.rTS) + ".vtu";
17191719
vtk_xml::write_vtu(com_mod, msh, fTmp);
17201720
}
17211721

Code/Source/svFSI/txt.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,12 @@ void txt(Simulation* simulation, const bool flag)
324324
fName[1] = fName[0];
325325

326326
if (l == nsd) {
327-
fName[0] = appPath + "B_" + fName[0] + "_flux_cpp.txt";
327+
fName[0] = appPath + "B_" + fName[0] + "_flux.txt";
328328
} else {
329-
fName[0] = appPath + "B_" + fName[0] + "_average_cpp.txt";
329+
fName[0] = appPath + "B_" + fName[0] + "_average.txt";
330330
}
331331

332-
fName[1] = appPath + "V_" + fName[1] + "_flux_cpp.txt";
332+
fName[1] = appPath + "V_" + fName[1] + "_flux.txt";
333333
#ifdef debug_txt
334334
dmsg << "flag: " << flag;
335335
dmsg << "fName[0]: " << fName[0];

Code/Source/svFSI/vtk_xml.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ void write_vtus(Simulation* simulation, const Array<double>& lA, const Array<dou
12741274
fName = ss.str();
12751275
}
12761276

1277-
fName = com_mod.saveName + "_" + fName + "_cpp.vtu";
1277+
fName = com_mod.saveName + "_" + fName + ".vtu";
12781278
auto vtk_writer = VtkData::create_writer(fName);
12791279

12801280
// Writing the position data

tests/cases/cmm/pipe_3d/1-rigid-solution/calcMeanPressTrac.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ def writeSrfPressure(p, fout, fwall):
128128
ntime = nstart + i*nfreq
129129
time = float(ntime)*dt
130130
if (ntime < 100):
131-
fname = "%s/result_%03d_cpp.vtu" %(srcdir, ntime)
131+
fname = "%s/result_%03d.vtu" %(srcdir, ntime)
132132
else:
133-
fname = "%s/result_%d_cpp.vtu" %(srcdir, ntime)
133+
fname = "%s/result_%d.vtu" %(srcdir, ntime)
134134
print ("Reading file <----- {}".format(fname))
135135
vtuMesh = loadVTU(fname)
136136
mean_h = mean_h + getSurfaceData(vtuMesh, wall_ids, 'Traction')

tests/cases/cmm/pipe_3d/3a-inflate-cmm/svFSI.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
<Face_file_path> ../../../fluid/pipe_RCR_3d/mesh/mesh-surfaces/lumen_wall.vtp </Face_file_path>
4141
</Add_face>
4242

43-
<Initial_velocities_file_path> ../1-rigid-solution/result_800_cpp.vtu </Initial_velocities_file_path>
44-
<Initial_pressures_file_path> ../1-rigid-solution/result_800_cpp.vtu </Initial_pressures_file_path>
43+
<Initial_velocities_file_path> ../1-rigid-solution/result_800.vtu </Initial_velocities_file_path>
44+
<Initial_pressures_file_path> ../1-rigid-solution/result_800.vtu </Initial_pressures_file_path>
4545

4646
</Add_mesh>
4747

tests/cases/cmm/pipe_3d/3b-prestress-cmm/svFSI.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
<Face_file_path> ../../../fluid/pipe_RCR_3d/mesh/mesh-surfaces/lumen_wall.vtp </Face_file_path>
4141
</Add_face>
4242

43-
<Initial_velocities_file_path> ../1-rigid-solution/result_800_cpp.vtu </Initial_velocities_file_path>
44-
<Initial_pressures_file_path> ../1-rigid-solution/result_800_cpp.vtu </Initial_pressures_file_path>
43+
<Initial_velocities_file_path> ../1-rigid-solution/result_800.vtu </Initial_velocities_file_path>
44+
<Initial_pressures_file_path> ../1-rigid-solution/result_800.vtu </Initial_pressures_file_path>
4545

4646
</Add_mesh>
4747

tests/cases/cmm/pipe_3d/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ For faster convergence, we initialize the flow for the FSI simulation using data
7878

7979
<Add_mesh name="msh" >
8080
...
81-
<Initial_velocities_file_path> ../1-rigid-solution/result_800_cpp.vtu </Initial_velocities_file_path>
82-
<Initial_pressures_file_path> ../1-rigid-solution/result_800_cpp.vtu </Initial_pressures_file_path>
81+
<Initial_velocities_file_path> ../1-rigid-solution/result_800.vtu </Initial_velocities_file_path>
82+
<Initial_pressures_file_path> ../1-rigid-solution/result_800.vtu </Initial_pressures_file_path>
8383
...
8484
</Add_mesh>
8585

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def run_by_name(folder, name, t_max, n_proc=1):
6464

6565
# read results
6666
fname = os.path.join(
67-
folder, str(n_proc) + "-procs", "result_" + str(t_max).zfill(3) + "_cpp.vtu"
67+
folder, str(n_proc) + "-procs", "result_" + str(t_max).zfill(3) + ".vtu"
6868
)
6969
if not os.path.exists(fname):
7070
raise RuntimeError("No svFSIplus output: " + fname)

0 commit comments

Comments
 (0)