SUBMODULE: added adios submodule (ADIOS2) and control files

This commit is contained in:
Mark Olesen 2019-08-07 16:50:47 +02:00 committed by Andrew Heather
parent e95ab402fd
commit b0eb74c142
5 changed files with 67 additions and 0 deletions

3
.gitmodules vendored
View File

@ -7,3 +7,6 @@
[submodule "catalyst"]
path = modules/catalyst
url = https://develop.openfoam.com/Community/catalyst.git
[submodule "adios"]
path = modules/adios
url = https://develop.openfoam.com/Community/adiosfoam.git

View File

@ -37,6 +37,15 @@ cleanTimeDirectories()
}
cleanAdiosOutput()
{
if [ -d adiosData ] && [ -d system ]
then
rm -rf adiosData > /dev/null 2>&1
fi
}
cleanDynamicCode()
{
if [ -d dynamicCode ] && [ -d system ]
@ -93,6 +102,7 @@ cleanCase()
{
cleanTimeDirectories
cleanPostProcessing
cleanAdiosOutput
cleanDynamicCode
cleanOptimisation

View File

@ -0,0 +1,34 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
// Embed output with ADIOS2
type adiosWrite;
libs ("libadiosFunctionObjects.so");
// Additional items to write, or items to write (when explicit)
write
{
// Only use explicitly named fields/clouds.
// Otherwise select all fields/clouds that have AUTO_WRITE on.
explicit false;
// Volume fields
fields ();
// Parcel clouds
clouds ();
}
// Items to suppress from writing
ignore
{
fields ();
clouds ();
}
// ************************************************************************* //

View File

@ -0,0 +1,19 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
// Embed output with ADIOS2
type adiosWrite;
libs ("libadiosFunctionObjects.so");
executeControl none;
writeControl writeTime;
writeInterval 1;
// ************************************************************************* //

1
modules/adios Submodule

@ -0,0 +1 @@
Subproject commit 64b82ebbe119287434b2d52d042d598d2899ad6b