ascl_id
stringclasses
752 values
repo_url
stringclasses
737 values
file_path
stringlengths
4
194
content
large_stringlengths
1
1M
language
stringclasses
29 values
license_type
stringclasses
24 values
size
int64
1
1M
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/mhd_currentSheet_3d.ini
# # MHD 3D test parameter file; current sheet test # # http://www.astro.princeton.edu/~jstone/Athena/tests/current-sheet/current-sheet.html # [run] tend=0.5 noutput=10 nstepmax=100 [mesh] nx=64 ny=64 nz=32 # BoundaryConditionType : # BC_UNDEFINED=0 # BC_DIRICHLET=1 # BC_NEUMANN=2 # BC_PERIODIC=3 boundary_xmin=3 bound...
Config
null
956
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/orszag-tang_mpi.ini
# # MHD 2D example parameter file; Orszag-Tang vortex test # # see http://www.astro.princeton.edu/~jstone/Athena/tests/orszag-tang/pagesource.html # # In the GPU version, one must particularly care of numerical parameters like # smallr, smallc. [run] tend=1.5 noutput=10 nstepmax=50 restart=no restart_filename=orszag-...
Config
null
1,152
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/jet2d_mpi_cpu.ini
# # Hydro 2D example parameter file; jet simulation # # Converted from a fortran namelist containing # various input parameters for HYDRO runs [run] tend=0.4 noutput=200 nstepmax=200 # define a 2D MPI cartesian mesh with mx x my MPI processes [mpi] mx=2 my=2 mz=1 # define the 2D problem for each MPI process [mesh] n...
Config
null
978
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/implode3d_debug.ini
# # Hydro 3D example parameter file; Hydrodynamical Implosion Test # # see the Athena test suite : # http://www.astro.princeton.edu/~jstone/Athena/tests/implode/Implode.html # [run] tend=0.4 noutput=1 nstepmax=5 [mesh] nx=32 ny=32 nz=32 # BoundaryConditionType : # BC_UNDEFINED=0 # BC_DIRICHLET=1 # BC_NEUMANN=2 # BC...
Config
null
891
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/rayleigh_taylor_gpu_2d.ini
# # Hydro 2D example parameter file; Rayleigh-Taylor simulation # # see Athena test suite web page : # http://www.astro.princeton.edu/~jstone/Athena/tests/rt/rt.html # # In the GPU version, one must particularly care of numerical parameters like # smallr, smallc (especially when trace computations is involved). # # Con...
Config
null
1,272
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/mhd_mri_3d_stratified.ini
# # MHD 3D test parameter file; # Magneto-Rotational Instability simulation with shearing box border # conditions and isothermal equation of state. # # http://en.wikipedia.org/wiki/Magnetorotational_instability # http://www.scholarpedia.org/article/Magnetorotational_instability # [run] tend=630000 noutput=10 nstepmax...
Config
null
1,374
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/mhd_shearWave_3d.ini
# # MHD 3D test parameter file; inertial wave test # [run] tend=8000 noutput=100 nstepmax=1000 [mesh] nx=128 ny=64 nz=4 # BoundaryConditionType : # BC_UNDEFINED=0 # BC_DIRICHLET=1 # BC_NEUMANN=2 # BC_PERIODIC=3 # BC_SHEARINGBOX=4 # only allowed for xmin/xmax boundary_xmin=4 boundary_xmax=4 boundary_ymin=3 boundary_y...
Config
null
951
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/kelvin_helmholtz_gpu_2d_large.ini
# # Hydro 2D example parameter file; Kelvin-Helmholtz simulation # # see Athena test suite web page : # http://www.astro.princeton.edu/~jstone/Athena/tests/kh/kh.html # # In the GPU version, one must particularly care of numerical parameters like # smallr, smallc (especially when trace computations is involved). # # Co...
Config
null
1,479
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/implode3d_mpi.ini
# # Hydro 3D example parameter file; Hydrodynamical Implosion Test # # see the Athena test suite : # http://www.astro.princeton.edu/~jstone/Athena/tests/implode/Implode.html # [run] tend=0.4 noutput=10 nstepmax=100 # define a 3D MPI cartesian mesh with mx x my x mz MPI processes [mpi] mx=2 my=2 mz=2 [mesh] nx=20 ny...
Config
null
948
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/mhd_rotor.ini
# # MHD 2D test parameter file; Rotor simulation # # G. Toth, "The div(B)=0 constraint in shock-capturing MHD codes", # JCP, 161, 605 (2000) # [run] tend=0.5 noutput=1 nstepmax=10 [mesh] nx=128 ny=128 nz=1 # BoundaryConditionType : # BC_UNDEFINED=0 # BC_DIRICHLET=1 # BC_NEUMANN=2 # BC_PERIODIC=3 boundary_xmin=2 bound...
Config
null
888
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/orszag-tang.ini
# # MHD 2D example parameter file; Orszag-Tang vortex test # # see http://www.astro.princeton.edu/~jstone/Athena/tests/orszag-tang/pagesource.html # # In the GPU version, one must particularly care of numerical parameters like # smallr, smallc. [run] tend=1.5 noutput=10 nstepmax=50 restart=no restart_filename=orszag-...
Config
null
1,018
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/mhd_fieldloop3d_shear.ini
# # MHD 3D test parameter file; field loop simulation with shearing box border # conditions and isothermal equation of state. # # T. Gardiner & J.M. Stone, "An unsplit Godunov method for ideal MHD # via constrined transport", JCP, 205, 509 (2005) # http://www.astro.princeton.edu/~jstone/Athena/tests/field-loop/Field-lo...
Config
null
1,254
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/mhd_mri_3d_mpi_debug.ini
# # MHD 3D test parameter file; # Magneto-Rotational Instability simulation with shearing box border # conditions and isothermal equation of state. # # http://en.wikipedia.org/wiki/Magnetorotational_instability # http://www.scholarpedia.org/article/Magnetorotational_instability # # # This is a small MPI setup intende...
Config
null
1,554
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/jet3d_cpu.ini
# # Hydro 3D example parameter file; jet simulation # [run] tend=0.4 noutput=20 nstepmax=800 [mesh] nx=50 ny=50 nz=200 xmin=0 xmax=1 ymin=0 ymax=1 zmin=0 zmax=4 # BoundaryConditionType : # BC_UNDEFINED=0 # BC_DIRICHLET=1 # BC_NEUMANN=2 # BC_PERIODIC=3 boundary_xmin=1 boundary_xmax=1 boundary_ymin=1 boundary_ymax=1 ...
Config
null
718
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/mhd_mri_3d_stratified_mpi.ini
# # MHD 3D test parameter file; # Magneto-Rotational Instability simulation with shearing box border # conditions and isothermal equation of state. # # http://en.wikipedia.org/wiki/Magnetorotational_instability # http://www.scholarpedia.org/article/Magnetorotational_instability # [run] tend=630000 noutput=10 nstepmax...
Config
null
1,399
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/kelvin_helmholtz_gpu_3d.ini
# # Hydro 3D example parameter file; Kelvin-Helmholtz simulation # # In the GPU version, one must particularly care of numerical parameters like # smallr, smallc (especially when trace computations is involved). # # Converted from a fortran namelist containing # various input parameters for HYDRO runs [run] tend=12.0 ...
Config
null
1,360
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/rayleigh_taylor_gpu_3d_mhd.ini
# # Hydro 3D example parameter file; Rayleigh-Taylor simulation # # see Athena test suite web page : # http://www.astro.princeton.edu/~jstone/Athena/tests/rt/rt.html # # In the GPU version, one must particularly care of numerical parameters like # smallr, smallc (especially when trace computations is involved). # # Con...
Config
null
1,341
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/rayleigh_taylor_2d_mpi_mhd.ini
# # MHD 2D example parameter file; Rayleigh-Taylor simulation # # see Athena test suite web page : # http://www.astro.princeton.edu/~jstone/Athena/tests/rt/rt.html # # In the GPU version, one must particularly care of numerical parameters like # smallr, smallc (especially when trace computations is involved). # # Conve...
Config
null
1,361
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/turbulence_mhd.ini
# # 3D MHD turbulence example parameter file # [run] tend=3.0 noutput=10 nstepmax=200 [mesh] nx=32 ny=32 nz=32 xmin=0 xmax=1 ymin=0 ymax=1 zmin=0 zmax=1 # BoundaryConditionType : # BC_UNDEFINED=0 # BC_DIRICHLET=1 # BC_NEUMANN=2 # BC_PERIODIC=3 boundary_xmin=3 boundary_xmax=3 boundary_ymin=3 boundary_ymax=3 boundary...
Config
null
1,073
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/jet3d_mpi_gpu.ini
# # Hydro 3D example parameter file; jet simulation # # In the GPU version, one must particularly care of numerical parameters like # smallr, smallc (especially when trace computations is involved). # # Converted from a fortran namelist containing # various input parameters for HYDRO runs [run] tend=0.4 noutput=20 nst...
Config
null
1,082
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/jet2d_cpu.ini
# # Hydro 2D example parameter file; jet simulation # # Converted from a fortran namelist containing # various input parameters for HYDRO runs [run] tend=0.2 noutput=100 nstepmax=2000 [mesh] nx=200 ny=800 nz=1 xmin=0 xmax=1 ymin=0 ymax=4 zmin=0 zmax=1 # BoundaryConditionType : # BC_UNDEFINED=0 # BC_DIRICHLET=1 # BC...
Config
null
809
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/turbulence_mhd_mpi.ini
# # 3D MHD turbulence example parameter file # [run] tend=3.0 noutput=5 nstepmax=3 nlog=1 # define a MPI cartesian mesh with mx x my x mz MPI processes [mpi] mx=2 my=2 mz=1 [mesh] nx=16 ny=16 nz=32 xmin=0 xmax=1 ymin=0 ymax=1 zmin=0 zmax=1 # BoundaryConditionType : # BC_UNDEFINED=0 # BC_DIRICHLET=1 # BC_NEUMANN=2 ...
Config
null
1,159
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/mhd_fieldloop_2d_mpi.ini
# # MHD 2D test parameter file; field loop simulation # # T. Gardiner & J.M. Stone, "An unsplit Godunov method for ideal MHD # via constrined transport", JCP, 205, 509 (2005) # http://www.astro.princeton.edu/~jstone/Athena/tests/field-loop/Field-loop.html # [run] tend=0.5 noutput=50 nstepmax=1000 # define a 2D MPI ca...
Config
null
1,252
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/mhd_inertialWave_2d.ini
# # MHD 2D test parameter file; inertial wave test # [run] tend=50000 noutput=20 nstepmax=1000 [mesh] nx=32 ny=32 nz=1 # BoundaryConditionType : # BC_UNDEFINED=0 # BC_DIRICHLET=1 # BC_NEUMANN=2 # BC_PERIODIC=3 boundary_xmin=3 boundary_xmax=3 boundary_ymin=3 boundary_ymax=3 boundary_zmin=3 boundary_zmax=3 xmin=-0.5 x...
Config
null
922
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/Gresho_vortex2d.ini
# # Hydro 2D example parameter file: Gresho vortex test # # see # http://arxiv.org/pdf/1409.7395v1.pdf - section 4.2.3 # http://www.cfd-online.com/Wiki/Gresho_vortex [run] tend=0.4 noutput=100 nstepmax=1000 [mesh] nx=256 ny=256 nz=1 xmin=0.0 xmax=1.0 ymin=0.0 ymax=1.0 zmin=0.0 zmax=1.0 # BoundaryConditionType : # ...
Config
null
938
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/turbulence_hydro_ou.ini
# # 3D hydro turbulence example parameter file # # Forcing term generated with Ornstein-Uhlenbeck process # [run] tend=1000.0 noutput=10 nstepmax=100 nlog=1000 [mesh] nx=32 ny=32 nz=32 xmin=0 xmax=1 ymin=0 ymax=1 zmin=0 zmax=1 # BoundaryConditionType : # BC_UNDEFINED=0 # BC_DIRICHLET=1 # BC_NEUMANN=2 # BC_PERIODIC=...
Config
null
1,013
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/blast2d.ini
# # Hydro 2D example parameter file: Spherical Blast wave # # see Athena test suite : # http://www.astro.princeton.edu/~jstone/Athena/tests/blast/blast.html # [run] tend=0.4 noutput=100 nstepmax=9000 [mesh] nx=400 ny=600 nz=1 xmin=0.0 xmax=1.0 ymin=0.0 ymax=1.5 zmin=0.0 zmax=1.0 # BoundaryConditionType : # BC_UND...
Config
null
912
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/jet2d_gpu.ini
# # Hydro 2D example parameter file; jet simulation # # In the GPU version, one must particularly care of numerical parameters like # smallr, smallc (especially when trace computations is involved). # # Converted from a fortran namelist containing # various input parameters for HYDRO runs [run] tend=0.2 noutput=50 nst...
Config
null
1,007
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/turbulence_hydro_mpi.ini
# # 3D hydro turbulence example parameter file # [run] tend=300.0 noutput=1 nstepmax=3 # define a MPI cartesian mesh with mx x my x mz MPI processes [mpi] mx=2 my=2 mz=1 [mesh] nx=16 ny=16 nz=32 xmin=0 xmax=1 ymin=0 ymax=1 zmin=0 zmax=1 # BoundaryConditionType : # BC_UNDEFINED=0 # BC_DIRICHLET=1 # BC_NEUMANN=2 # B...
Config
null
1,044
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/rayleigh_taylor_cpu_2d_mhd.ini
# # MHD 2D example parameter file; Rayleigh-Taylor simulation # # see Athena test suite web page : # http://www.astro.princeton.edu/~jstone/Athena/tests/rt/rt.html # # In the GPU version, one must particularly care of numerical parameters like # smallr, smallc (especially when trace computations is involved). # # Conve...
Config
null
1,340
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/jet3d_mhd_mpi_gpu.ini
# # 3D MHD example parameter file; jet simulation # # In the GPU version, one must particularly care of numerical parameters like # smallr, smallc (especially when trace computations is involved). # # Converted from a fortran namelist containing # various input parameters for HYDRO runs [run] tend=0.4 noutput=20 nstep...
Config
null
1,201
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/mhd_BrioWu.ini
# # MH 2D example parameter file; Brio-Wu shock tube test # # see http://www.astro.princeton.edu/~jstone/Athena/tests/brio-wu/Brio-Wu.html # # In the GPU version, one must particularly care of numerical parameters like # smallr, smallc. # [run] tend=0.5 noutput=25 nstepmax=500 [mesh] nx=256 ny=256 nz=1 # BoundaryCond...
Config
null
952
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/testRiemannHLLD.ini
# # MH 2D example parameter file; Brio-Wu shock tube test # # see http://www.astro.princeton.edu/~jstone/Athena/tests/brio-wu/Brio-Wu.html # # In the GPU version, one must particularly care of numerical parameters like # smallr, smallc. # [run] tend=0.5 noutput=1 nstepmax=3 [mesh] nx=32 ny=32 nz=12 # BoundaryConditio...
Config
null
1,404
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/kelvin_helmholtz_gpu_2d_mhd.ini
# # Hydro 2D example parameter file; Kelvin-Helmholtz simulation # # see Athena test suite web page : # http://www.astro.princeton.edu/~jstone/Athena/tests/kh/kh.html # # In the GPU version, one must particularly care of numerical parameters like # smallr, smallc (especially when trace computations is involved). # # Co...
Config
null
1,397
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/turbulence_hydro.ini
# # 3D hydro turbulence example parameter file # [run] tend=3.0 noutput=10 nstepmax=100 [mesh] nx=32 ny=32 nz=32 xmin=0 xmax=1 ymin=0 ymax=1 zmin=0 zmax=1 # BoundaryConditionType : # BC_UNDEFINED=0 # BC_DIRICHLET=1 # BC_NEUMANN=2 # BC_PERIODIC=3 boundary_xmin=3 boundary_xmax=3 boundary_ymin=3 boundary_ymax=3 bounda...
Config
null
963
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
data/rayleigh_taylor_gpu_3d_mpi_mhd.ini
# # Hydro 3D example parameter file; Rayleigh-Taylor simulation # # see Athena test suite web page : # http://www.astro.princeton.edu/~jstone/Athena/tests/rt/rt.html # # In the GPU version, one must particularly care of numerical parameters like # smallr, smallc (especially when trace computations is involved). # # Con...
Config
null
1,367
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/makeConfigHydro.cpp
/** * \file makeConfigHydro.cpp * \brief a simple config builder, to be used for testing * g++ -O3 -o makeConfigHydro makeConfigHydro.cpp * * \date January 2010 * \author P. Kestener */ #include "GetPot.h" #include "cstdlib" #include "iostream" using namespace std; int main(int argc, char **argv) { /* parse ...
C++
null
2,413
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/CMakeLists.txt
add_executable(makeConfigHydro makeConfigHydro.cpp) target_compile_options(makeConfigHydro PRIVATE -I${CMAKE_SOURCE_DIR}/src/hydro) configure_file(test_run.sh.in test_run.sh) configure_file(computeL2relatif.py.in computeL2relatif.py) if (USE_MPI) add_subdirectory(mpiBasic) add_subdirectory(mpiCuda) add_subdir...
Text
null
475
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiBasic/testMpiTopology_3D_C_API.cpp
/** * \file testMpiTopology_3D_C_API.cpp * \brief Simple example showing how to use MPI virtual topology (3D). * * adapted from See https://computing.llnl.gov/tutorials/mpi/ * see also http://scv.bu.edu/~kadin/alliance/virtual_topology/codes/ * * \author P. Kestener * \date 30 Sept 2010 */ #include <mpi.h> #i...
C++
null
4,716
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiBasic/testMpiTopology_2D_C_API.cpp
/** * \file testMpiTopology_2D_C_API.cpp * \brief Simple example showing how to use MPI virtual topology (2D). * * adapted from See https://computing.llnl.gov/tutorials/mpi/ * see also http://scv.bu.edu/~kadin/alliance/virtual_topology/codes/ * * \author P. Kestener * \date 30 Sept 2010 */ #include <mpi.h> #i...
C++
null
5,098
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiBasic/testMpiTopology_2D.cpp
/** * \file testMpiTopology_2D.cpp * \brief Simple example showing how to use MPI virtual topology (2D) * * * Simple MPI test with a cartesian grid topology. * In this example, a 3 by 4 grid is instantiate. * * !!! WARNING : C++ binding are deprecated in MPI 2.2 !!! * * * IMPORTANT NOTE. * The purpose of cl...
C++
null
4,863
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiBasic/testVtkXMLPImageDataWriter.cpp
/** * \file testVtkXMLPImageDataWriter.cpp * \brief Example of use of VTK class vtkXMLPImageDataWriter with MPI. * * In this example a 2D ImageData object is created and then cut into * pieces which are written by different MPI processes into multiple * vti files. * argv[1] must be a filename with extension pvti...
C++
null
4,477
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiBasic/testMpiHelloBoost.cpp
/** * \file testMpiHelloBoost.cpp * \brief A simple MPI helloworld using Boost' c++ API. * This is the non-blocking version ! * */ // Copyright (C) 2006 Douglas Gregor <doug.gregor@gmail.com> // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LIC...
C++
null
1,201
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiBasic/testMpiHelloGlobalSession.cpp
/** * \file testMpiHelloGlobalSession.cpp * \brief Mpi helloworld application using CPP wrapper classes from libHydroMpi. * * * To launch: mpirun -n 4 ./testMpiHelloGlobalSession * * Uses the MpiGlobalSession class to handle Initialize/Finalize operation. * * \date 1 Oct 2010 * \author Pierre Kestener */ #in...
C++
null
1,196
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiBasic/testMpiHello.cpp
/** * \file testMpiHello.cpp * \brief Small MPI test using c++ API. * * To launch: mpirun -n 4 ./testMpiHello * * !!! WARNING C++ binding are deprecated in MPI 2.2 !!! * * \ingroup test * * \date 27 Sept 2010 * \author Pierre Kestener */ // the following pragma does the same as -Wno-unused-parameter given /...
C++
null
1,545
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiBasic/testMpiTopology_2D_Cpp_API.cpp
/** * \file testMpiTopology_2D_Cpp_API.cpp * \brief Simple example showing how to use MPI virtual topology (2D), * CPP API. * * Simple MPI test with a cartesian grid topology. * In this example, a 3 by 4 grid is instantiate. * * !!! WARNING : C++ binding are deprecated in MPI 2.2 !!! * * \date 27 sept 2010 *...
C++
null
4,570
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiBasic/testMpiTopology_3D_Cpp_API.cpp
/** * \file testMpiTopology_3D_Cpp_API.cpp * \brief Simple example showing how to use MPI virtual topology (3D), * CPP API. * * Simple MPI test with a cartesian grid topology. * In this example, a 3 by 3 by 3 grid is instantiate. * * !!! WARNING : C++ binding are deprecated in MPI 2.2 !!! * * \date 1 Oct 2010...
C++
null
5,002
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiBasic/CMakeLists.txt
####################################################### add_executable(testMpiTopology_2D_C_API testMpiTopology_2D_C_API.cpp ) target_link_libraries (testMpiTopology_2D_C_API PUBLIC MPI::MPI_CXX) # add_test(NAME testMpiTopology_2D_C_API COMMAND mpirun -np 12 testMpiTopology_2D_C_API) #########################...
Text
null
1,297
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiHydro/testCopyBorderBufferShear.cpp
/** * \file testCopyBorderBufferShear.cpp * \brief test routine copyBorderBufferShear * * \date 3 February 2012 * \author P. Kestener */ #include <cstdlib> #include <iostream> //#include <Arrays.h> #include "hydro/shearBorderUtils.h" using namespace hydroSimu; /* * */ int main(int argc, char * argv[]) { ...
C++
null
1,595
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiHydro/testMpiOutputVtk.cpp
/** * \file testMpiOutputVtk.cpp * \brief test routine outputVtk in class HydroRunBaseMpi. * * \date 16 Oct 2010 * \author Pierre Kestener */ #include <cstdlib> #include <iostream> #include "utils/mpiUtils/GlobalMpiSession.h" #include "hydro/HydroRunBaseMpi.h" #include "hydro/GetPot.h" #include "utils/config/...
C++
null
3,781
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiHydro/testHydroMpiParameters.cpp
/** * \file testHydroMpiParameters.cpp * \brief test class HydroMpiParameters * * \date 7 Oct 2010 * \author P. Kestener */ #include <cstdlib> #include <iostream> #include "utils/mpiUtils/GlobalMpiSession.h" #include "hydro/HydroMpiParameters.h" #include "hydro/GetPot.h" #include "utils/config/ConfigMap.h" v...
C++
null
2,512
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiHydro/testCopyBorderBuffer.cpp
/** * \file testCopyBorderBuffer.cpp * \brief test routine copyBorderBuffer * * \date 14 Oct 2010 * \author P. Kestener */ #include <cstdlib> #include <iostream> #include "hydro/mpiBorderUtils.h" using namespace hydroSimu; /* * */ int main(int argc, char * argv[]) { int isize = 8, jsize = 16; HostArra...
C++
null
1,464
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiHydro/testHydroRunBaseMpi_border.cpp
/** * \file testHydroRunBaseMpi-border.cpp * \brief test routine make_boundaries in class HydroRunBaseMpi. * * \date 18 Oct 2010 * \author Pierre Kestener */ #include <cstdlib> #include <iostream> #include "utils/mpiUtils/GlobalMpiSession.h" #include "hydro/HydroRunBaseMpi.h" #include "hydro/GetPot.h" #includ...
C++
null
3,790
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiHydro/CMakeLists.txt
############################################################ add_executable(testCopyBorderBuffer "") target_sources(testCopyBorderBuffer PUBLIC testCopyBorderBuffer.cpp) target_include_directories(testCopyBorderBuffer PUBLIC ${CMAKE_SOURCE_DIR}/src) target_link_libraries(testCopyBorderBuffer PUBLIC RamsesGP...
Text
null
2,240
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiHydro/testMpiBuffer.cpp
/** * \file testMpiBuffer.cpp * \brief test transfert buffers (HostArray class) between 2 MPI processes. * * Note for debug: see http://www.open-mpi.org/faq/?category=debugging * 1. mpirun -np 2 xterm -e gdb ./testMpiBuffer * 2. mpirun -np 2 valgrind ./testMpiBuffer * mpirun -np 2 ./testMpiBuffer * \date 15...
C++
null
3,976
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiIO/dumpMpiInfo.c
/* -*- Mode: C; c-basic-offset:4 ; -*- */ /* * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ /* Change for BG/L made by Hao Yu, yuh@us.ibm.com */ /* copied from MPICH2 sources: $MPICH2_SRC/src/mpi/romio/test/file_info.c slightly modified to dump ROMIO values */ /...
C
null
12,376
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiIO/submit_job_curie.sh
#!/bin/bash #MSUB -r dumpMpiInfo #MSUB -n 8 #MSUB -T 600 #MSUB -q test #MSUB -o dumpMpiInfo_%I.o #MSUB -e dumpMpiInfo_%I.e #MSUB -A paxxxx # change here to the right project Id ##MSUB -@ pierre.kestener@cea.fr:end set -x cd ${BRIDGE_MSUB_PWD} ccc_mprun ./dumpMpiInfo -fname test.txt
Shell
null
309
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/testPoisson/testPoissonCpuFFTW3d.cpp
/** * A very simple test for solving Laplacian(\phi) = rho using FFT in 3D. * * Laplacian operator can be considered as a low-pass filter. * Here we implement 2 types of filters : * * method 0 : see Numerical recipes in C, section 19.4 * method 1 : just divide right hand side by -(kx^2+ky^2+kz^2) in Fourier * ...
C++
null
12,290
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/testPoisson/poisson_fft_2d.py
""" Mini benchmark for FFT-based Poisson solver. """ import numpy as np import matplotlib.pyplot as plt from scipy.fftpack import fftn #from pyfftw.interfaces.numpy_fft import fftn def initData(data,testCase): x0, y0 = 0.5, 0.5 # get data dimensions Nx,Ny=data.shape Lx,Ly=1.0,1.0 ...
Python
null
4,493
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/testPoisson/testPoissonCpuFFTW2d.cpp
/** * A very simple test for solving Laplacian(\phi) = rho using FFT in 2D. * * Laplacian operator can be considered as a low-pass filter. * Here we implement 2 types of filters : * * method 0 : see Numerical recipes in C, section 19.4 * method 1 : just divide right hand side by -(kx^2+ky^2) in Fourier * * Tes...
C++
null
10,553
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/testPoisson/poisson_fft_3d.py
""" Mini testbench for FFT-based Poisson solver. P. Kestener, June 6 2015. """ import numpy as np import matplotlib.pyplot as plt from scipy.fftpack import fftn #from pyfftw.interfaces.numpy_fft import fftn def initData(data,testCase): x0, y0, z0 = 0.5, 0.5, 0.5 # get data dimensions Nx,Ny,...
Python
null
5,797
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/testPoisson/CMakeLists.txt
####################################### add_executable(testPoissonCpuFFTW2d "") target_sources(testPoissonCpuFFTW2d PUBLIC testPoissonCpuFFTW2d.cpp) target_include_directories(testPoissonCpuFFTW2d PUBLIC ${CMAKE_SOURCE_DIR}/src/hydro) target_link_libraries(testPoissonCpuFFTW2d PUBLIC RamsesGPU::cnpy Rams...
Text
null
1,648
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
test/mpiCuda/CMakeLists.txt
if(USE_CUDA) ############################################################# add_executable(testHelloMpiCuda "") target_sources(testHelloMpiCuda PRIVATE testHelloMpiCuda.cu) target_link_libraries(testHelloMpiCuda PUBLIC RamsesGPU::mpiUtils) # convert flags to something nvcc can process #cmake_cud...
Text
null
1,400
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/euler2d_laxliu.cpp
/** * \file euler2d_laxliu.cpp * \brief * Solve 2D Euler equation on a cartesian grid using positive scheme (Lax-Liu). * * \date 21/01/2010 * \author P. Kestener * * $Id: euler2d_laxliu.cpp 3452 2014-06-17 10:09:48Z pkestene $ */ #include <cstdlib> #include <iostream> #include "HydroRunLaxLiu.h" #include "u...
C++
null
3,143
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/euler_zslab_mpi_main.cpp
/** * \file euler_zslab_mpi_main.cpp * \brief * Solve 3D Euler equation on a cartesian grid using the Godunov * method (with Riemann solvers) using MPI+CUDA and z-slab update method.. * * \date September 27, 2012 * \author P. Kestener * * $Id: euler_zslab_mpi_main.cpp 3234 2014-02-03 16:40:34Z pkestene $ */ ...
C++
null
5,353
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/euler_zslab_main.cpp
/** * \file euler_zslab_main.cpp * \brief * * Solve 3D Euler equations on a cartesian grid using * the Godunov scheme (with Riemann solvers) and z-slab update method. * * \date Sept 12, 2012 * \author P. Kestener * * $Id: euler_zslab_main.cpp 3452 2014-06-17 10:09:48Z pkestene $ */ #ifndef _GNU_SOURCE #def...
C++
null
5,490
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/euler_main.cpp
/** * \file euler_main.cpp * \brief * * Solve 2D/3D Euler equations on a cartesian grid using either : * - the Godunov scheme (with Riemann solvers) * - the Kurganov-Tadmor scheme * - the Relaxing TVD scheme * * Also solve 2D/3D MHD equations Godunov+CTU scheme. * * \date 16/01/2010 * \author P. Kestener ...
C++
null
6,862
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/euler2d_main_glut.cpp
/** * \file euler2d_main_glut.cpp * \brief * GLUT-based GUI which displays in real time simulations results of 2D Euler / MHD * solved on a cartesian grid using either : * - the Godunov scheme (with Riemann solvers) * - the Kurganov-Tadmor scheme * - the Relaxing TVD scheme * * \date 23/02/2010 * \author P....
C++
null
12,439
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/test_euler2d_glut.sh
#!/bin/bash ./euler2d_cpu_glut --posx 200 --posy 100& ./euler2d_gpu_glut --posx 420 --posy 100& # NOTE1 : to make a screencast of test, before running this screen, first launch # recordmydesktop -x 200 -y 100 --width 430 --height 840 -o euler_cpu_gpu_screencast.ogv # NOTE2 : to re-encode ogv video into avi: # menco...
Shell
null
408
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/euler_mpi_main.cpp
/** * \file euler_mpi_main.cpp * \brief * Solve 2D/3D Euler equation on a cartesian grid using the Godunov * method (with Riemann solvers) using MPI+CUDA. * * \date 19 Oct 2010 * \author P. Kestener * * $Id: euler_mpi_main.cpp 3452 2014-06-17 10:09:48Z pkestene $ */ #include <cstdlib> #include <iostream> /...
C++
null
5,424
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/CMakeLists.txt
add_subdirectory(utils) add_subdirectory(analysis) add_subdirectory(hydro) # # MAIN application # # set exe name if(USE_MPI) if (USE_CUDA) set(RamsesGPU_main_exe ramsesGPU_mpi_cuda) else(USE_CUDA) set(RamsesGPU_main_exe ramsesGPU_mpi_cpu) endif(USE_CUDA) else(USE_MPI) if (USE_CUDA) set(RamsesGPU_m...
Text
null
2,797
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/testTrace.cpp
/** * \file testTrace.cpp * \brief numerical test of reconstruction step * * $Id$ */ #include <cstdlib> #include <iostream> #include <iomanip> //#define USE_DOUBLE #include "./hydro/real_type.h" #include "./hydro/trace_mhd.h" /** Parse command line / configuration parameter file */ #include "hydro/GetPot.h" #i...
C++
null
4,511
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/test_euler2d_qt.sh
#!/bin/bash ./euler2d_cpu_qt --posx 200 --posy 100& ./euler2d_gpu_qt --posx 460 --posy 100& # NOTE1 : to make a screencast of test, before running this screen, first launch # recordmydesktop -x 200 -y 100 --width 430 --height 840 -o euler_cpu_gpu_screencast.ogv # NOTE2 : to re-encode ogv video into avi: # mencoder ...
Shell
null
404
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/testRiemannHLLD.cpp
/** * \file testRiemannHLLD.cpp * \brief numerical test of HLLD solver * * $Id: testRiemannHLLD.cpp 3452 2014-06-17 10:09:48Z pkestene $ */ #include <cstdlib> #include <iostream> #include <iomanip> //#define USE_DOUBLE #include "./hydro/real_type.h" #include "./hydro/riemann.h" #include "./hydro/riemann_mhd.h" ...
C++
null
5,463
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/CMakeLists.txt
add_subdirectory(powerSpectrum) if (USE_MPI AND USE_PNETCDF) add_subdirectory(readSlice) endif() if (USE_MPI AND USE_PNETCDF AND NOT CUDA) add_subdirectory(structureFunctions) endif()
Text
null
190
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/powerSpectrum/fBm.ini
[mesh] # local domain sizes nx=32 ny=32 nz=32 ghostWidth=3 [mpi] mx=1 my=1 mz=1 [output] pnetcdf_cdf5=no pnetcdf_verbose=no outputFile=./fBm.nc ghostIncluded=yes scaled=no vectorFieldEnabled=yes [fBm] random_seed=1234 h=0.5
Config
null
227
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/powerSpectrum/pnetcdf_io.h
/** * \file pnetcdf_io.h * * Parallel NetCDF IO. * * \author P. Kestener * \date 20/06/2013 * * $Id: pnetcdf_io.h 3369 2014-04-14 15:52:22Z pkestene $ */ #ifndef PNETCDF_IO_H_ #define PNETCDF_IO_H_ #include "utils/config/ConfigMap.h" #include "hydro/Arrays.h" using hydroSimu::HostArray; /** * Read netcdf f...
C/C++ Header
null
1,123
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/powerSpectrum/pnetcdf_io.cpp
#include <stdlib.h> #include <mpi.h> #include "pnetcdf_io.h" #include "hydro/constants.h" // for Parallel-netCDF support #ifdef USE_PNETCDF #include <pnetcdf.h> #define PNETCDF_HANDLE_ERROR { \ if (err != NC_NOERR) \ printf("Error at line %d (%s)\n", _...
C++
null
9,850
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/powerSpectrum/CMakeLists.txt
configure_file(fft.ini fft.ini) configure_file(fBm.ini fBm.ini) if (USE_MPI) # # Compute Power Spectrum Mpi # # only add this test if fftw3_mpi library is available if (FFTW_MPI_LIB AND USE_PNETCDF) add_executable(computePowerSpectrumMpi "") target_sources(computePowerSpectrumMpi PUBLIC ...
Text
null
2,130
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/powerSpectrum/powerSpectrumMpi.cpp
/** * \file powerSpectrumMpi.cpp * * This file contains a simple programs to compute power spectrum of a large data * array stored in a netcdf file (use Parallel-NetCDF to load data) and then compute * FFT (using the distributed implementation provided by fftw3-mpi). * * \author P. Kestener * \date 20/06/2013 ...
C++
null
12,820
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/powerSpectrum/fft_mpi.cpp
/** * \file fft_mpi.cpp * * Parallel FFT computation. * * \author P. Kestener * \date 20/06/2013 * * $Id: fft_mpi.cpp 3394 2014-05-06 10:19:58Z pkestene $ */ #include <mpi.h> #include "fft_mpi.h" #include <iostream> #include <math.h> #include <stdlib.h> /*****************************************************...
C++
null
14,083
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/powerSpectrum/projectedDensityMpi.cpp
/** * \file projectedDensityMpi.cpp * * This file contains a simple programs to compute 2D projected density of a large * 3D data array stored in a netcdf file (use Parallel-NetCDF to load data). * Projection along Z into (X,Y) plane. * PNetCDF reading routine removes ghost zones; so we read only the inner sub-do...
C++
null
5,220
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/powerSpectrum/generate_fBm.cpp
/** * \file generateFbm.cpp * * This file contains a simple programs to generate a realization the * 3D fractional Brownian process * http://en.wikipedia.org/wiki/Fractional_Brownian_motion * * Data are then dump into a pnetcdf file comptatible with RamsesGPU. * Only rho_vx is populated with the Brownian motion...
C++
null
6,657
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/powerSpectrum/fft_mpi.h
/** * \file fft_mpi.h * * Parallel FFT computation. * * \author P. Kestener * \date 20/06/2013 * * $Id: fft_mpi.h 3394 2014-05-06 10:19:58Z pkestene $ */ #ifndef FFT_MPI_H_ #define FFT_MPI_H_ #ifdef USE_FFTW3_MPI #include <fftw3-mpi.h> #endif /* USE_FFTW3_MPI */ #include "utils/config/ConfigMap.h" #ifdef ...
C/C++ Header
null
1,666
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/powerSpectrum/fft.ini
[mesh] nx=64 ny=64 nz=16 ghostWidth=3 [mpi] mx=1 my=1 mz=4 [powerSpectrum] nBins=64 dumpFreq=yes
Config
null
99
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/readSlice/CMakeLists.txt
# # read slice of pnetcdf data file # add_executable(readSlice "") target_sources(readSlice PUBLIC readSlice.cpp) target_compile_options(readSlice PUBLIC -DUSE_FFTW3_MPI -DUSE_PNETCDF) target_include_directories(readSlice PUBLIC ${PNETCDF_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/src) target_link_libraries(readS...
Text
null
416
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/readSlice/readSlice.cpp
/** * \file readSlice.cpp * \brief * MPI app (Parallel-NetCDF) to read a slice in a large 3D netcdf file. * * example of use: * mpirun -np 1 readSlice_double -i test.nc -o test.npy -x --slice 12 * * \date 2 July 2013 * \author P. Kestener * * $Id: readSlice.cpp 2957 2013-08-26 15:08:40Z pkestene $ */ #in...
C++
null
12,658
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/structureFunctions/generate_fractional_browian_field.py
#!/usr/bin/env python """ Generate (fractional) Brownian field and save it in a Netcdf file. """ # numerical packages import numpy as np # Fast Fourier Transform from scipy.fftpack import fft, ifft, fftn, ifftn # # Create 2D Brownian field (assume nx and ny are even) # # h : Holder exponent in [0, 1] # if h == 0.5...
Python
null
8,905
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/structureFunctions/common_sf.h
#ifndef COMMON_SF_H_ #define COMMON_SF_H_ enum SF_TYPES { SF_TYPE_V = 0, /* v */ SF_TYPE_RHO2V = 1, /* rho^1/2*v */ SF_TYPE_RHO3V = 2 /* rho^1/3*v */ }; //! number of SF type (velocity, rho^1/2*v, rho^1/3*v) //extern const int NumberOfTypes; //! number of SF order (q=1,2, ..., MaxSFOrder), initial...
C/C++ Header
null
591
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/structureFunctions/structureFunctionsMpi_v2.cpp
/** * \file structureFunctionsMPI.cpp * * A simple standalone program to structure functions ( longitudinal and transversal) * of a large data from turbulence simulation run. Data are stored in a netcdf file * (use Parallel-NetCDF to load data). * There are 2 possibilities: * - use a 2D (X,Y) domain decompositio...
C++
null
30,109
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/structureFunctions/common_sf.cpp
#include "common_sf.h" //const int NumberOfTypes = 3; int MaxSFOrder = 0; // will be initialized by reading param file
C++
null
121
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/structureFunctions/strucFunc.ini
[mesh] # local domain sizes nx=16 ny=16 nz=16 ghostWidth=3 # if pieceByPieceAlongZ=yes, we use a 2D domain decomposition # else a 3D domain decomposition pieceByPieceAlongZ=yes [mpi] mx=4 my=4 mz=4 [structureFunctions] # number of reference point over the global domain #nSampleTotal=65536 # 2**16 nSampleTotal=4096 # ...
Config
null
401
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/structureFunctions/test_pnetcdf.ini
[mesh] # local domain sizes nx=32 ny=64 nz=16 ghostWidth=3 [mpi] mx=2 my=1 mz=4 [output] pnetcdf_cdf5=no pnetcdf_verbose=no outputFile=./testData.nc
Config
null
151
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/structureFunctions/structureFunctionsMpi.cpp
/** * \file structureFunctionsMPI.cpp * * A simple standalone program to structure functions ( longitudinal and transversal) * of a large data from turbulence simulation run. Data are stored in a netcdf file * (use Parallel-NetCDF to load data). * There are 2 possibilities: * - use a 2D (X,Y) domain decompositio...
C++
null
46,282
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/structureFunctions/pnetcdf_io.cpp
/** * \file pnetcdf_io.cpp * * Parallel NetCDF IO. * * \author P. Kestener * \date 20/06/2013 * * $Id: pnetcdf_io.cpp 3404 2014-05-22 10:43:59Z pkestene $ */ #include <stdlib.h> #include <mpi.h> #include "pnetcdf_io.h" #include "hydro/constants.h" #include "common_sf.h" // for enum DataIndex // for Paralle...
C++
null
7,922
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/structureFunctions/pnetcdf_io.h
/** * \file pnetcdf_io.h * * Parallel NetCDF IO. * * \author P. Kestener * \date 20/06/2013 * * $Id: pnetcdf_io.h 3404 2014-05-22 10:43:59Z pkestene $ */ #ifndef PNETCDF_IO_H_ #define PNETCDF_IO_H_ #include <mpi.h> #include "utils/config/ConfigMap.h" #include "hydro/Arrays.h" using hydroSimu::HostArray; /*...
C/C++ Header
null
1,667
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/structureFunctions/CMakeLists.txt
configure_file(test_pnetcdf.ini test_pnetcdf.ini) configure_file(strucFunc.ini strucFunc.ini) add_executable(test_pnetcdf_write "") target_sources(test_pnetcdf_write PUBLIC pnetcdf_io.cpp test_pnetcdf_write.cpp) target_compile_options(test_pnetcdf_write PUBLIC -DUSE_PNETCDF) target_link_libraries(test_pnetcd...
Text
null
1,480
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/structureFunctions/structureFunctionsMpi_v3.cpp
/** * \file structureFunctionsMPI.cpp * * A simple standalone program to structure functions ( longitudinal and transversal) * of a large data from turbulence simulation run. Data are stored in a netcdf file * (use Parallel-NetCDF to load data). * There are 2 possibilities: * - use a 2D (X,Y) domain decompositio...
C++
null
30,075
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/analysis/structureFunctions/test_pnetcdf_write.cpp
/** * \file test_write_pnetcdf.cpp * * \author P. Kestener * \date April, 14 2014 * * $Id: test_pnetcdf_write.cpp 3404 2014-05-22 10:43:59Z pkestene $ */ #include <math.h> #include <iostream> #include <fstream> #include <limits> // numeric limits #include "hydro/GetPot.h" #include "utils/config/ConfigMap.h...
C++
null
5,878
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/Arrays.h
/** * \file Arrays.h * \brief Provides CPU/GPU C++ array classes. * * \author F. Chateau and P. Kestener * * $Id: Arrays.h 3444 2014-06-15 20:30:40Z pkestene $ */ #ifndef ARRAYS_H_ #define ARRAYS_H_ #include <stdexcept> #include <iostream> #include <cstring> // the following defines types for cuda compatibilit...
C/C++ Header
null
24,412