-
Notifications
You must be signed in to change notification settings - Fork 72
Initial ADIOS2 implementation #338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0"?> | ||
<adios-config> | ||
|
||
<!--==================================== | ||
Configuration for the Writer | ||
====================================--> | ||
|
||
<io name="FlaggedGeometry"> | ||
<engine type="SST"> | ||
<parameter key="verbose" value="5"/> | ||
</engine> | ||
</io> | ||
|
||
|
||
<!--==================================== | ||
Configuration for the Reader | ||
====================================--> | ||
|
||
<io name="FlaggedGeometry"> | ||
<engine type="SST"> | ||
<parameter key="verbose" value="5"/> | ||
</engine> | ||
</io> | ||
</adios-config> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0"?> | ||
|
||
<CLBConfig version="2.0" output="output/" permissive="true"> | ||
<Geometry nx="800" ny="800" nz="1"> | ||
<MRT> | ||
<Box/> | ||
</MRT> | ||
<!-- <WVelocity name="Inlet"> | ||
<Inlet/> | ||
</WVelocity> | ||
<EPressure name="Outlet"> | ||
<Outlet/> | ||
</EPressure> | ||
<Inlet nx="1" dx="5"> | ||
<Box/> | ||
</Inlet> | ||
<Outlet nx="1" dx="-5"> | ||
<Box/> | ||
</Outlet> --> | ||
<Wall mask="ALL" dx="33" dy="10" nx="734" ny="734"> | ||
<Channel/> | ||
<ADIOS2 Stream="globalArray" Variable="GlobalArray" IOName="FlaggedGeometry" AdiosConfig="karman.adios.xml"/> | ||
|
||
</Wall> | ||
</Geometry> | ||
<Model> | ||
<Param name="VelocityX" value="0.01"/> | ||
<Param name="Viscosity" value="0.02"/> | ||
<Param name="Smag" value="0.16"/> | ||
<Param name="PressDiffInObj" value="1"/> | ||
<Param name="EOSScale" value="0.05"/> | ||
<Param name="Tension" value="0.01"/> | ||
<Param name="Coriolis" value="0.001"/> | ||
<Param name="SolidAlfa" value="0.166"/> | ||
<Param name="FluidAlfa" value="0.01"/> | ||
<Param name="InitTemperature" value="0"/> | ||
<Param name="InletTemperature" value="1"/> | ||
</Model> | ||
<VTK/> | ||
<!-- <Solve Iterations="10000"/> --> | ||
</CLBConfig> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,16 @@ AC_ARG_WITH([hdf5-include], | |
AC_HELP_STRING([--with-hdf5-include=hdf5], | ||
[specify the full path to your hdf5 installation (headers)])) | ||
|
||
AC_ARG_WITH([adios_dir], | ||
AC_HELP_STRING([--with-adios_dir=adios_dir], | ||
[specify the directory containing bin/adios_config /usr/local/adios2]), | ||
[ADIOS_DIR="$withval"]) | ||
|
||
AC_ARG_WITH([adios], | ||
AC_HELP_STRING([--enable-adios], | ||
[Enable ADIOS2 support (experimental)]), | ||
[with_adios="$withval"]) | ||
|
||
AC_ARG_ENABLE([graphics], | ||
AC_HELP_STRING([--enable-graphics], | ||
[make a GUI version])) | ||
|
@@ -383,6 +393,24 @@ if test "x${with_hdf5}" != "xno"; then | |
fi | ||
fi | ||
|
||
if test "x${with_adios}" != "xno"; then | ||
adios2_config="${ADIOS_DIR}/bin/adios2-config" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't see where It has to be:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ADIOS2_USE_MPI is an ADIOS config flag (the adios2-config returns it in --flags string) - I'm abusing it a little now This is to be changed I think:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we need our own flag for enabling ADIOS then. Remember that if an flag is in the compilation (like TCLB is always MPI, we don't have an option for that. |
||
AC_CHECK_PROG(adios2_config,${adios2_config},${adios2_config},adios2-config) | ||
|
||
AC_MSG_NOTICE([ADIOS2 config: ${adios2_config}]) | ||
|
||
AC_MSG_CHECKING([ADIOS2 embandinng: linker flags]) | ||
LD=$(${adios2_config} --cxx-libs) | ||
LDFLAGS="${LDFLAGS} ${LD}" | ||
AC_MSG_RESULT(["${LD}"]) | ||
|
||
|
||
AC_MSG_CHECKING([ADIOS2 embandinng: linker flags]) | ||
LD=$(${adios2_config} --cxx-flags) | ||
|
||
CPPFLAGS="${CPPFLAGS} ${LD}" | ||
AC_MSG_RESULT(["${LD}"]) | ||
fi | ||
|
||
if test "x${with_python}" == "xyes"; then | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also has to be in
#ifdef