Skip to content

Commit c1100a3

Browse files
authored
Make FSISPH package optional (#297)
* Move damagedPressure field to SolidFieldNames (removing Hydro's dependency on FSISPH) * Disable FSISPH tests if the package is disabled
1 parent f9d06ca commit c1100a3

23 files changed

+45
-33
lines changed

RELEASE_NOTES.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Notable changes include:
2020
* Distributed source directory must always be built now.
2121
* Git strategies in the Gitlab CI are fixed so a clone only occurs on the first stage for each job, instead of for all stages for each job.
2222
* New Gitlab CI pipeline cleanup strategy deletes job directories immediately upon successful completion.
23+
* The FSISPH package is now optional (SPHERAL\_ENABLE\_FSISPH).
2324
* The GSPH package is now optional (SPHERAL\_ENABLE\_GSPH).
2425
* The SVPH package is now optional (SPHERAL\_ENABLE\_SVPH).
2526

cmake/SetupSpheral.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ set(ENABLE_HELMHOLTZ ON CACHE BOOL "enable the Helmholtz equation of state packa
5757

5858
option(SPHERAL_ENABLE_ARTIFICIAL_CONDUCTION "Enable the artificial conduction package" ON)
5959
option(SPHERAL_ENABLE_EXTERNAL_FORCE "Enable the external force package" ON)
60+
option(SPHERAL_ENABLE_FSISPH "Enable the FSISPH package" ON)
6061
option(SPHERAL_ENABLE_GRAVITY "Enable the gravity package" ON)
6162
option(SPHERAL_ENABLE_GSPH "Enable the GSPH package" ON)
6263
option(SPHERAL_ENABLE_SVPH "Enable the SVPH package" ON)

scripts/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ if (NOT ENABLE_CXXONLY)
1818
list(APPEND SPHERAL_ATS_BUILD_CONFIG_ARGS "--filter='\"np<2\"'")
1919
endif()
2020

21+
if (NOT SPHERAL_ENABLE_FSISPH)
22+
list(APPEND SPHERAL_ATS_BUILD_CONFIG_ARGS "--filter='\"not fsisph\"'")
23+
endif()
24+
2125
if (NOT SPHERAL_ENABLE_GSPH)
2226
list(APPEND SPHERAL_ATS_BUILD_CONFIG_ARGS "--filter='\"not gsph\"'")
2327
endif()

src/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ list(APPEND _packages
2121
DataBase
2222
DataOutput
2323
Distributed
24-
FSISPH
2524
Field
2625
FieldOperations
2726
FileIO
@@ -52,6 +51,10 @@ if (SPHERAL_ENABLE_EXTERNAL_FORCE)
5251
list(APPEND _packages ExternalForce)
5352
endif()
5453

54+
if (SPHERAL_ENABLE_FSISPH)
55+
list(APPEND _packages FSISPH)
56+
endif()
57+
5558
if (SPHERAL_ENABLE_GRAVITY)
5659
list(APPEND _packages Gravity)
5760
endif()

src/FSISPH/FSIFieldNames.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
#include "FSIFieldNames.hh"
88

9-
const std::string Spheral::FSIFieldNames::damagedPressure = "damaged pressure";
109
const std::string Spheral::FSIFieldNames::pressureGradient = "pressureGradient";
1110
const std::string Spheral::FSIFieldNames::specificThermalEnergyGradient = "specificThermalEnergyGradient";
1211
const std::string Spheral::FSIFieldNames::interfaceFlags = "interfaceFlags";
@@ -16,4 +15,4 @@ const std::string Spheral::FSIFieldNames::interfaceAngles = "interfaceAngles";
1615
const std::string Spheral::FSIFieldNames::interfaceFraction = "interfaceFraction";
1716
const std::string Spheral::FSIFieldNames::interfaceSmoothness = "interfaceSmoothness";
1817
const std::string Spheral::FSIFieldNames::smoothedInterfaceNormals = "smoothedInterfaceNormals";
19-
const std::string Spheral::FSIFieldNames::interfaceSmoothnessNormalization = "interfaceSmoothnessNormalization";
18+
const std::string Spheral::FSIFieldNames::interfaceSmoothnessNormalization = "interfaceSmoothnessNormalization";

src/FSISPH/FSIFieldNames.hh

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
namespace Spheral {
1010

1111
struct FSIFieldNames {
12-
static const std::string damagedPressure;
1312
static const std::string pressureGradient;
1413
static const std::string specificThermalEnergyGradient;
1514
static const std::string interfaceFlags;

src/FSISPH/SolidFSISPHEvaluateDerivatives.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ secondDerivativesLoop(const typename Dimension::Scalar time,
9090
const auto massDensity = state.fields(HydroFieldNames::massDensity, 0.0);
9191
const auto specificThermalEnergy = state.fields(HydroFieldNames::specificThermalEnergy, 0.0);
9292
const auto H = state.fields(HydroFieldNames::H, SymTensor::zero);
93-
const auto damagedPressure = state.fields(FSIFieldNames::damagedPressure, 0.0);
93+
const auto damagedPressure = state.fields(SolidFieldNames::damagedPressure, 0.0);
9494
const auto pressure = state.fields(HydroFieldNames::pressure, 0.0);
9595
const auto soundSpeed = state.fields(HydroFieldNames::soundSpeed, 0.0);
9696
const auto S = state.fields(SolidFieldNames::deviatoricStress, SymTensor::zero);
@@ -811,7 +811,7 @@ firstDerivativesLoop(const typename Dimension::Scalar /*time*/,
811811
const auto massDensity = state.fields(HydroFieldNames::massDensity, 0.0);
812812
const auto specificThermalEnergy = state.fields(HydroFieldNames::specificThermalEnergy, 0.0);
813813
const auto H = state.fields(HydroFieldNames::H, SymTensor::zero);
814-
const auto damagedPressure = state.fields(FSIFieldNames::damagedPressure, 0.0);
814+
const auto damagedPressure = state.fields(SolidFieldNames::damagedPressure, 0.0);
815815
const auto fragIDs = state.fields(SolidFieldNames::fragmentIDs, int(1));
816816

817817
CHECK(mass.size() == numNodeLists);

src/FSISPH/SolidFSISPHHydroBase.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ SolidFSISPHHydroBase(const SmoothingScaleBase<Dimension>& smoothingScaleMethod,
230230

231231
mTimeStepMask = dataBase.newFluidFieldList(int(0), HydroFieldNames::timeStepMask);
232232
mPressure = dataBase.newFluidFieldList(0.0, HydroFieldNames::pressure);
233-
mDamagedPressure = dataBase.newFluidFieldList(0.0, FSIFieldNames::damagedPressure);
233+
mDamagedPressure = dataBase.newFluidFieldList(0.0, SolidFieldNames::damagedPressure);
234234
mSoundSpeed = dataBase.newFluidFieldList(0.0, HydroFieldNames::soundSpeed);
235235
mBulkModulus = dataBase.newSolidFieldList(0.0, SolidFieldNames::bulkModulus);
236236
mShearModulus = dataBase.newSolidFieldList(0.0, SolidFieldNames::shearModulus);
@@ -342,7 +342,7 @@ registerState(DataBase<Dimension>& dataBase,
342342
dataBase.resizeSolidFieldList(mShearModulus, 0.0, SolidFieldNames::shearModulus, false);
343343
dataBase.resizeSolidFieldList(mYieldStrength, 0.0, SolidFieldNames::yieldStrength, false);
344344
dataBase.resizeSolidFieldList(mPlasticStrain0, 0.0, SolidFieldNames::plasticStrain + "0", false);
345-
dataBase.resizeSolidFieldList(mDamagedPressure, 0.0, FSIFieldNames::damagedPressure, false);
345+
dataBase.resizeSolidFieldList(mDamagedPressure, 0.0, SolidFieldNames::damagedPressure, false);
346346
dataBase.resizeSolidFieldList(mInterfaceNormals, Vector::zero, FSIFieldNames::interfaceNormals, false);
347347
dataBase.resizeSolidFieldList(mInterfaceFraction, 0.0, FSIFieldNames::interfaceFraction, false);
348348
dataBase.resizeSolidFieldList(mInterfaceSmoothness, 0.0, FSIFieldNames::interfaceSmoothness, false);
@@ -647,7 +647,7 @@ applyGhostBoundaries(State<Dimension>& state,
647647
FieldList<Dimension, Scalar> specificThermalEnergy = state.fields(HydroFieldNames::specificThermalEnergy, 0.0);
648648
FieldList<Dimension, Vector> velocity = state.fields(HydroFieldNames::velocity, Vector::zero);
649649
FieldList<Dimension, Scalar> pressure = state.fields(HydroFieldNames::pressure, 0.0);
650-
FieldList<Dimension, Scalar> damagedPressure = state.fields(FSIFieldNames::damagedPressure, 0.0);
650+
FieldList<Dimension, Scalar> damagedPressure = state.fields(SolidFieldNames::damagedPressure, 0.0);
651651
FieldList<Dimension, Scalar> soundSpeed = state.fields(HydroFieldNames::soundSpeed, 0.0);
652652
FieldList<Dimension, SymTensor> S = state.fields(SolidFieldNames::deviatoricStress, SymTensor::zero);
653653
FieldList<Dimension, Scalar> K = state.fields(SolidFieldNames::bulkModulus, 0.0);
@@ -699,7 +699,7 @@ enforceBoundaries(State<Dimension>& state,
699699
FieldList<Dimension, Scalar> specificThermalEnergy = state.fields(HydroFieldNames::specificThermalEnergy, 0.0);
700700
FieldList<Dimension, Vector> velocity = state.fields(HydroFieldNames::velocity, Vector::zero);
701701
FieldList<Dimension, Scalar> pressure = state.fields(HydroFieldNames::pressure, 0.0);
702-
FieldList<Dimension, Scalar> damagedPressure = state.fields(FSIFieldNames::damagedPressure, 0.0);
702+
FieldList<Dimension, Scalar> damagedPressure = state.fields(SolidFieldNames::damagedPressure, 0.0);
703703
FieldList<Dimension, Scalar> soundSpeed = state.fields(HydroFieldNames::soundSpeed, 0.0);
704704
FieldList<Dimension, SymTensor> S = state.fields(SolidFieldNames::deviatoricStress, SymTensor::zero);
705705
FieldList<Dimension, Scalar> K = state.fields(SolidFieldNames::bulkModulus, 0.0);

src/Hydro/PressurePolicy.cc

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include "PressurePolicy.hh"
99
#include "Hydro/HydroFieldNames.hh"
1010
#include "Strength/SolidFieldNames.hh"
11-
#include "FSISPH/FSIFieldNames.hh"
1211
#include "DataBase/State.hh"
1312
#include "DataBase/StateDerivatives.hh"
1413
#include "Field/Field.hh"
@@ -56,7 +55,7 @@ update(const KeyType& key,
5655
KeyType fieldKey, nodeListKey;
5756
StateBase<Dimension>::splitFieldKey(key, fieldKey, nodeListKey);
5857
REQUIRE((fieldKey == HydroFieldNames::pressure or
59-
fieldKey == FSIFieldNames::damagedPressure));
58+
fieldKey == SolidFieldNames::damagedPressure));
6059
auto& P = state.field(key, Scalar());
6160

6261
// Get the eos. This cast is ugly, but is a work-around for now.
@@ -99,9 +98,9 @@ update(const KeyType& key,
9998

10099
// Is someone trying to keep the damaged pressure in an independent Field?
101100
// (I'm looking at you FSISPH)
102-
const auto separateDamage = state.registered(buildKey(FSIFieldNames::damagedPressure));
101+
const auto separateDamage = state.registered(buildKey(SolidFieldNames::damagedPressure));
103102
Field<Dimension, Scalar>* PdPtr = nullptr;
104-
if (separateDamage) PdPtr = &state.field(buildKey(FSIFieldNames::damagedPressure), 0.0);
103+
if (separateDamage) PdPtr = &state.field(buildKey(SolidFieldNames::damagedPressure), 0.0);
105104

106105
// If there's damage for this material, apply it to the pressure
107106
// This is complicated by FSISPH, which wants to keep track of the damaged pressure separately,

src/PYB11/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ set (_python_packages
2424
SPH
2525
CRKSPH
2626
DEM
27-
FSISPH
2827
ArtificialViscosity
2928
Mesh
3029
Damage
@@ -56,6 +55,10 @@ if (SPHERAL_ENABLE_EXTERNAL_FORCE)
5655
list(APPEND _python_packages ExternalForce)
5756
endif()
5857

58+
if (SPHERAL_ENABLE_FSISPH)
59+
list(APPEND _python_packages FSISPH)
60+
endif()
61+
5962
if (SPHERAL_ENABLE_GRAVITY)
6063
list(APPEND _python_packages Gravity)
6164
endif()

src/PYB11/FSISPH/FSISPH_PYB11.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
# expose our field names
5757
#-------------------------------------------------------------------------------
5858
class FSIFieldNames:
59-
damagedPressure = PYB11readonly(static=True, returnpolicy="copy")
6059
pressureGradient = PYB11readonly(static=True, returnpolicy="copy")
6160
specificThermalEnergyGradient = PYB11readonly(static=True, returnpolicy="copy")
6261
interfaceFlags = PYB11readonly(static=True, returnpolicy="copy")
@@ -66,4 +65,4 @@ class FSIFieldNames:
6665
interfaceFraction = PYB11readonly(static=True, returnpolicy="copy")
6766
interfaceSmoothness = PYB11readonly(static=True, returnpolicy="copy")
6867
smoothedInterfaceNormals = PYB11readonly(static=True, returnpolicy="copy")
69-
interfaceSmoothnessNormalization = PYB11readonly(static=True, returnpolicy="copy")
68+
interfaceSmoothnessNormalization = PYB11readonly(static=True, returnpolicy="copy")

src/PYB11/Strength/Strength_PYB11.py

+1
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,4 @@ class SolidFieldNames:
5656
fragmentIDs = PYB11readonly(static=True, returnpolicy="copy")
5757
particleTypes = PYB11readonly(static=True, returnpolicy="copy")
5858
meltSpecificEnergy = PYB11readonly(static=True, returnpolicy="copy")
59+
damagedPressure = PYB11readonly(static=True, returnpolicy="copy")

src/Strength/SolidFieldNames.cc

+1
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ const std::string Spheral::SolidFieldNames::fragmentIDs = "fragment index";
3737
const std::string Spheral::SolidFieldNames::particleTypes = "particle type";
3838
const std::string Spheral::SolidFieldNames::meltSpecificEnergy = "melt specific energy";
3939
const std::string Spheral::SolidFieldNames::mask = "mask";
40+
const std::string Spheral::SolidFieldNames::damagedPressure = "damaged pressure";

src/Strength/SolidFieldNames.hh

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ struct SolidFieldNames {
4242
static const std::string particleTypes;
4343
static const std::string meltSpecificEnergy;
4444
static const std::string mask;
45+
static const std::string damagedPressure;
4546
};
4647

4748
}

tests/functional/Hydro/Noh/Noh-planar-1d.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
#
4646
# Solid FSISPH
4747
#
48-
#ATS:t400 = test( SELF, "--fsisph True --solid True --graphics None --clearDirectories True --checkError True --restartStep 20", label="Planar Noh problem with FSISPH -- 1-D (serial)")
49-
#ATS:t401 = testif(t400, SELF, "--fsisph True --solid True --graphics None --clearDirectories False --checkError False --restartStep 20 --restoreCycle 20 --steps 20 --checkRestart True", label="Planar Noh problem with FSISPH -- 1-D (serial) RESTART CHECK")
48+
#ATS:t400 = test( SELF, "--fsisph True --solid True --graphics None --clearDirectories True --checkError True --restartStep 20", label="Planar Noh problem with FSISPH -- 1-D (serial)", fsisph=True)
49+
#ATS:t401 = testif(t400, SELF, "--fsisph True --solid True --graphics None --clearDirectories False --checkError False --restartStep 20 --restoreCycle 20 --steps 20 --checkRestart True", label="Planar Noh problem with FSISPH -- 1-D (serial) RESTART CHECK", fsisph=True)
5050
#
5151
# GSPH
5252
#

tests/functional/Hydro/Sod/Sod-planar-1d-WaterGas.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
# Solid FSISPH
33
#
4-
#ATS:fsisph1 = test( SELF, "--fsisph True --solid True --nx1 500 --nx2 30 --cfl 0.45 --graphics None --clearDirectories True --restartStep 20 --steps 40", label="Planar Water-Gas Sod problem with FSISPH -- 1-D (serial)")
5-
#ATS:fsisph2 = testif(fsisph1, SELF, "--fsisph True --solid True --nx1 500 --nx2 30 --cfl 0.45 --graphics None --clearDirectories False --restartStep 20 --steps 20 --restoreCycle 20 --checkRestart True", label="Planar Water-Gas Sod problem with FSISPH -- 1-D (serial) RESTART CHECK")
4+
#ATS:fsisph1 = test( SELF, "--fsisph True --solid True --nx1 500 --nx2 30 --cfl 0.45 --graphics None --clearDirectories True --restartStep 20 --steps 40", label="Planar Water-Gas Sod problem with FSISPH -- 1-D (serial)", fsisph=True)
5+
#ATS:fsisph2 = testif(fsisph1, SELF, "--fsisph True --solid True --nx1 500 --nx2 30 --cfl 0.45 --graphics None --clearDirectories False --restartStep 20 --steps 20 --restoreCycle 20 --checkRestart True", label="Planar Water-Gas Sod problem with FSISPH -- 1-D (serial) RESTART CHECK", fsisph=True)
66
#
77
# GSPH
88
#

tests/functional/Hydro/Sod/Sod-planar-1d.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#
1414
# Solid FSISPH
1515
#
16-
#ATS:fsisph1 = test( SELF, "--crksph False --fsisph True --solid True --cfl 0.25 --graphics None --clearDirectories True --restartStep 20 --steps 40", label="Planar Sod problem with FSISPH -- 1-D (serial)")
17-
#ATS:fsisph2 = testif(fsisph1, SELF, "--crksph False --fsisph True --solid True --cfl 0.25 --graphics None --clearDirectories False --restartStep 20 --steps 20 --restoreCycle 20 --checkRestart True", label="Planar Sod problem with FSISPH -- 1-D (serial) RESTART CHECK")
16+
#ATS:fsisph1 = test( SELF, "--crksph False --fsisph True --solid True --cfl 0.25 --graphics None --clearDirectories True --restartStep 20 --steps 40", label="Planar Sod problem with FSISPH -- 1-D (serial)", fsisph=True)
17+
#ATS:fsisph2 = testif(fsisph1, SELF, "--crksph False --fsisph True --solid True --cfl 0.25 --graphics None --clearDirectories False --restartStep 20 --steps 20 --restoreCycle 20 --checkRestart True", label="Planar Sod problem with FSISPH -- 1-D (serial) RESTART CHECK", fsisph=True)
1818
#
1919
# GSPH
2020
#

tests/functional/Hydro/Sod/Sod-spherical-1d.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#
1212
# Solid FSISPH
1313
#
14-
#ATS:fsisph1 = test( SELF, "--crksph False --fsisph True --solid True --cfl 0.25 --graphics None --clearDirectories True --restartStep 20 --steps 40", label="Spherical Sod problem with FSISPH -- 1-D (serial)")
15-
#ATS:fsisph2 = testif(fsisph1, SELF, "--crksph False --fsisph True --solid True --cfl 0.25 --graphics None --clearDirectories False --restartStep 20 --steps 20 --restoreCycle 20 --checkRestart True", label="Spherical Sod problem with FSISPH -- 1-D (serial) RESTART CHECK")
14+
#ATS:fsisph1 = test( SELF, "--crksph False --fsisph True --solid True --cfl 0.25 --graphics None --clearDirectories True --restartStep 20 --steps 40", label="Spherical Sod problem with FSISPH -- 1-D (serial)", fsisph=True)
15+
#ATS:fsisph2 = testif(fsisph1, SELF, "--crksph False --fsisph True --solid True --cfl 0.25 --graphics None --clearDirectories False --restartStep 20 --steps 20 --restoreCycle 20 --checkRestart True", label="Spherical Sod problem with FSISPH -- 1-D (serial) RESTART CHECK", fsisph=True)
1616
#
1717
# GSPH
1818
#

tests/functional/Porosity/PlanarCompaction/PlanarCompaction-1d.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
#
1616
# FSISPH
1717
#
18-
#ATS:t10 = test( SELF, "--graphics False --clearDirectories True --checkError True --hydroType FSISPH --dataDirBase dumps-PlanarCompaction-1d-fsisph --restartStep 100000 --postCleanup True", np=4, label="Planar porous aluminum compaction problem -- 1-D (FSISPH, 4 proc)")
19-
#ATS:t11 = test( SELF, "--graphics False --clearDirectories True --checkError False --hydroType FSISPH --dataDirBase dumps-PlanarCompaction-1d-fsisph-restart --restartStep 100 --steps 200", label="Planar porous aluminum compaction problem -- 1-D (FSISPH, serial, restart test step 1)")
20-
#ATS:t12 = testif(t11, SELF, "--graphics False --clearDirectories False --checkError False --hydroType FSISPH --dataDirBase dumps-PlanarCompaction-1d-fsisph-restart --restartStep 100 --steps 100 --checkRestart True --restoreCycle 100 --postCleanup True", label="Planar porous aluminum compaction problem -- 1-D (FSISPH, serial, restart test step 2)")
18+
#ATS:t10 = test( SELF, "--graphics False --clearDirectories True --checkError True --hydroType FSISPH --dataDirBase dumps-PlanarCompaction-1d-fsisph --restartStep 100000 --postCleanup True", np=4, label="Planar porous aluminum compaction problem -- 1-D (FSISPH, 4 proc)", fsisph=True)
19+
#ATS:t11 = test( SELF, "--graphics False --clearDirectories True --checkError False --hydroType FSISPH --dataDirBase dumps-PlanarCompaction-1d-fsisph-restart --restartStep 100 --steps 200", label="Planar porous aluminum compaction problem -- 1-D (FSISPH, serial, restart test step 1)", fsisph=True)
20+
#ATS:t12 = testif(t11, SELF, "--graphics False --clearDirectories False --checkError False --hydroType FSISPH --dataDirBase dumps-PlanarCompaction-1d-fsisph-restart --restartStep 100 --steps 100 --checkRestart True --restoreCycle 100 --postCleanup True", label="Planar porous aluminum compaction problem -- 1-D (FSISPH, serial, restart test step 2)", fsisph=True)
2121
#
2222
# CRKSPH
2323
#

tests/functional/Strength/DiametralCompression/DiametralCompression.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Solid FSISPH
66
#
7-
#ATS:t100 = test( SELF, "--clearDirectories True --checkError True --goalTime 5.0 --fsisph True --nrSpecimen 15 ", label="Diametral Compression Test FSISPH -- 2-D", np=8)
7+
#ATS:t100 = test( SELF, "--clearDirectories True --checkError True --goalTime 5.0 --fsisph True --nrSpecimen 15 ", label="Diametral Compression Test FSISPH -- 2-D", np=8, fsisph=True)
88

99
from Spheral2d import *
1010

@@ -759,4 +759,4 @@ def eulerianSampleVars(j,i):
759759
raise ValueError("tensile stress error bounds violated (error, error tolerance) = (%g,%g)." % (error,tol))
760760

761761
if leaveNoTrace:
762-
os.system("rm -rf "+baseDir)
762+
os.system("rm -rf "+baseDir)

tests/functional/Strength/DiametralCompression/DiametralCompressionInlet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Solid FSISPH
66
#
7-
#ATS:t100 = test( SELF, "--clearDirectories True --checkError True --fsisph True --goalTime 2.0 --nrSpecimen 15 ", label="Diametral Compression Test FSISPH -- 2-D", np=1)
7+
#ATS:t100 = test( SELF, "--clearDirectories True --checkError True --fsisph True --goalTime 2.0 --nrSpecimen 15 ", label="Diametral Compression Test FSISPH -- 2-D", np=1, fsisph=True)
88

99
from Spheral2d import *
1010
import sys, os

tests/functional/Strength/Piston/Piston.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
# Solid FSISPH
33
#
4-
#ATS:fsisph1 = test( SELF, "--fsisph True --solid True --nx1 500 --cfl 0.45 --graphics None --clearDirectories True --restartStep 20 --steps 40", label="Copper plastic-wave problem with FSISPH -- 1-D (serial)")
5-
##ATS:fsisph2 = testif(fsisph1, SELF, "--fsisph True --solid True --nx1 500 --cfl 0.45 --graphics None --clearDirectories False --restartStep 20 --steps 20 --restoreCycle 20 --checkRestart True", label="Copper plastic-wave problem with FSISPH -- 1-D (serial) RESTART CHECK")
4+
#ATS:fsisph1 = test( SELF, "--fsisph True --solid True --nx1 500 --cfl 0.45 --graphics None --clearDirectories True --restartStep 20 --steps 40", label="Copper plastic-wave problem with FSISPH -- 1-D (serial)", fsisph=True)
5+
##ATS:fsisph2 = testif(fsisph1, SELF, "--fsisph True --solid True --nx1 500 --cfl 0.45 --graphics None --clearDirectories False --restartStep 20 --steps 20 --restoreCycle 20 --checkRestart True", label="Copper plastic-wave problem with FSISPH -- 1-D (serial) RESTART CHECK", fsisph=True)
66

77

88
import os, sys, shutil

tests/integration.ats

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# (using the ATS) before pushing changes to that public repo!
55
#-------------------------------------------------------------------------------
66

7+
glue(fsisph = False)
78
glue(gsph = False)
89
glue(svph = False)
910

0 commit comments

Comments
 (0)