/*In this test case all processes define 5 handles each and write SolData with 5 values to these handles. * In the file we can see SolData-"somevalue" data sets written by each process/rank. */ #include #include "damsel-hdf5.h" #include "damsel.h" #include "damsel-internal.h" #include "damsel-ndc.h" #include "damsel-debug.h" #include "damsel-connectivity.h" #include "damsel-types.h" #include #include #define FILENAME "output/nFilewrite.h5" int main(int argc, char **argv) { int i, len, res, myrank, num_procs; #ifndef DAMSEL_SINGLETHREAD MPI_Init_thread(&argc, &argv, MPI_THREAD_MULTIPLE, &res); assert(res == MPI_THREAD_MULTIPLE); #else MPI_Init(&argc, &argv); #endif MPI_Comm_rank (MPI_COMM_WORLD, &myrank); MPI_Comm_size (MPI_COMM_WORLD, &num_procs); damsel_library lib; damsel_err_t err = DMSLlib_init(&lib); /* create a new model */ damsel_model model; err = DMSLmodel_create(DAMSEL_HANDLE_TYPE_HANDLE64, &model); assert(model != NULL); damsel_model_internal *ms = (damsel_model_internal *)model; assert(ms != NULL); short int data[5]; len = 5; damsel_handle block_id [len]; /*generating handles and some data values*/ for(i=0; i