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
# setup: | |
StreamingSineWave -auto -3d +cartesian -nxb=32 -nyb=32 -nzb=32 nE=16 nSpecies=2 nNodes=2 nMoments=4 momentClosure=MINERBO -parfile=test_paramesh_3d.par -objdir=ssw3dpm.32 +amrex +thornadoACC thornadoOrder=ORDER_1 | |
# flash.par | |
# refinement | |
nblockx = 32 | |
nblocky = 16 | |
nblockz = 16 | |
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
""" flask_example.py | |
Required packages: | |
- flask | |
- folium | |
Usage: | |
Start the flask server by running: |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include "mpi.h" | |
#include "hdf5.h" | |
static void SetHDF5fapl(hid_t fapl, MPI_Comm comm) | |
{ | |
H5Pset_fapl_mpio(fapl, comm, MPI_INFO_NULL); | |
// Alignment and metadata block size |
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
diff --git a/Src/Extern/HDF5/AMReX_PlotFileUtilHDF5.cpp b/Src/Extern/HDF5/AMReX_PlotFileUtilHDF5.cpp | |
index 7573b195c..90af31464 100644 | |
--- a/Src/Extern/HDF5/AMReX_PlotFileUtilHDF5.cpp | |
+++ b/Src/Extern/HDF5/AMReX_PlotFileUtilHDF5.cpp | |
@@ -588,7 +588,7 @@ void WriteMultiLevelPlotfileHDF5SingleDset (const std::string& plotfilename, | |
#endif | |
if(centerdataset < 0) { std::cout << "Create center dataset failed! ret = " << centerdataset << std::endl; break;} | |
- Vector<unsigned long long> offsets(sortedGrids.size() + 1); | |
+ Vector<unsigned long long> offsets(sortedGrids.size() + 1, 0); |
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
diff --git a/src/H5Iint.c b/src/H5Iint.c | |
index 86a2810437..2166603635 100644 | |
--- a/src/H5Iint.c | |
+++ b/src/H5Iint.c | |
@@ -1533,14 +1533,20 @@ H5I__iterate_cb(void *_item, void H5_ATTR_UNUSED *_key, void *_udata) | |
object = H5I__unwrap((void *)info->object, type); /* Casting away const OK */ | |
H5_GCC_CLANG_DIAG_ON("cast-qual") | |
- /* Invoke callback function */ | |
- cb_ret_val = (*udata->user_func)((void *)object, info->id, udata->user_udata); |
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
diff --git a/src/H5Oattribute.c b/src/H5Oattribute.c | |
index 6ca4204168..31b4977b15 100644 | |
--- a/src/H5Oattribute.c | |
+++ b/src/H5Oattribute.c | |
@@ -471,13 +471,13 @@ H5O__attr_open_by_name(const H5O_loc_t *loc, const char *name) | |
/* If found the attribute is already opened, make a copy of it to share the | |
* object information. If not, open attribute as a new object | |
*/ | |
- if ((found_open_attr = H5O__attr_find_opened_attr(loc, &exist_attr, name)) < 0) | |
- HGOTO_ERROR(H5E_ATTR, H5E_CANTGET, NULL, "failed in finding opened attribute") |
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
# FLASH makefile definitions for x86-64 Linux (GNU compilers) | |
#---------------------------------------------------------------------------- | |
# Set the HDF5/MPI library paths -- these need to be updated for your system | |
#---------------------------------------------------------------------------- | |
LIB_STDCXX = | |
MPI_PATH = | |
HDF4_PATH = | |
HDF5_PATH = /home/houjun/hdf5/build/hdf5 | |
HYPRE_PATH = /usr/local/hypre |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <rados/librados.h> | |
int set_omap(rados_t cluster, rados_ioctx_t ioctx, const char *oid) { | |
int failed = 0; | |
int ret,x1,x2,x3,buff_size = 50; |
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
from spack import * | |
| |
| |
class Pdc(CMakePackage): | |
"""Proactive Data Containers (PDC) software provides an object-centric API and a runtime system with a set of | |
data object management services. These services allow placing data in the memory and storage hierarchy, | |
performing data movement asynchronously, and providing scalable metadata operations to find data objects.""" | |
| |
# FIXME: Add a proper url for your package's homepage here. | |
homepage = "https://pdc.readthedocs.io/en/latest/" |
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
#include <tiledb/tiledb.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <sys/time.h> | |
#include <unistd.h> | |
#include "mpi.h" | |
int main(int argc, char** argv) { |