forked from aurora-multiphysics/platypus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request aurora-multiphysics#50 from aurora-multiphysics/He…
…nriqueBR/conduit_support Conduit support
- Loading branch information
Showing
3 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# MFEMConduitDataCollection | ||
|
||
## Summary | ||
|
||
!syntax description /Outputs/MFEMConduitDataCollection | ||
|
||
## Overview | ||
|
||
`MFEMDataCollection` controlling output of data to an `mfem::ConduitDataCollection` for visualisation | ||
in VisIt. Conduit output is typically significantly faster than other data collections since VisIt uses | ||
the MFEM FE types for visualisation, and ParaViewDataCollection oversamples the degrees of freedom. | ||
|
||
The user may choose the output protocol out of the following options: `hdf5`, `json`, `conduit_json`, and `conduit_bin`. | ||
|
||
## Example Input File Syntax | ||
|
||
!listing test/tests/outputs/datacollections.i block=Outputs/ConduitDataCollection | ||
|
||
!syntax parameters /Outputs/MFEMConduitDataCollection | ||
|
||
!syntax inputs /Outputs/MFEMConduitDataCollection | ||
|
||
!syntax children /Outputs/MFEMConduitDataCollection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,6 +90,12 @@ install_spack_deps() { | |
spack uninstall -ay arch=${ARCH} | ||
spack clean -ab | ||
|
||
echo "Installing Conduit..." | ||
spack install conduit +mpi +parmetis +shared \ | ||
^mpich +cuda +slurm cuda_arch=80 \ | ||
^hdf5 +cxx +fortran +hl +mpi +shared | ||
spack load conduit arch=${ARCH} | ||
|
||
echo "Installing Petsc..." | ||
# Spack's petsc doesn't like openmpi, but it works with mpich | ||
spack install petsc +cuda cuda_arch=80 +fortran +hdf5 +hypre +metis +mpi \ | ||
|
@@ -107,10 +113,6 @@ install_spack_deps() { | |
spack install netcdf-c +parallel-netcdf | ||
spack load netcdf-c arch=${ARCH} | ||
|
||
echo "Installing ninja..." | ||
spack install ninja | ||
spack load ninja arch=${ARCH} | ||
|
||
echo "Adding python modules..." | ||
|
||
spack install [email protected] | ||
|
@@ -152,6 +154,7 @@ install_mfem() { | |
export F77=mpif77 | ||
export FC=mpif90 | ||
SLU_DIR=$(spack find --format "{prefix}" superlu-dist) | ||
CONDUIT_DIR=$(spack find --format "{prefix}" conduit) | ||
export SLU_DIR | ||
|
||
# Build MFEM | ||
|
@@ -176,7 +179,9 @@ install_mfem() { | |
-DMFEM_USE_SUPERLU=YES \ | ||
-DMFEM_USE_NETCDF=YES \ | ||
-DMFEM_USE_GSLIB=YES \ | ||
-DMFEM_USE_CONDUIT=YES \ | ||
-DGSLIB_DIR="${BUILD_PATH}/gslib/build" \ | ||
-DCONDUIT_DIR="${CONDUIT_DIR}" \ | ||
-DSuperLUDist_DIR="${SLU_DIR}" \ | ||
-DSuperLUDist_VERSION_OK=YES | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters