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
src/hydro/mhd_godunov_mpi_unsplit_cpu_v0.cpp
#include "MHDRunGodunovMpi.h" #include "constoprim.h" #include "riemann_mhd.h" #include "trace_mhd.h" /** a dummy device-only swap function */ static void swap_v(real_t& a, real_t& b) { real_t tmp = a; a = b; b = tmp; } // swap_v namespace hydroSimu { // ============================================...
C++
null
37,682
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunBase.h
/** * \file HydroRunBase.h * \brief Defines a base C++ class to implement hydrodynamics simulations. * * HydroRunBase class is base class that gather all functionality * usefull to real hydrodynamics simulation implementation (see * HydroRunGodunov for example). * * \author P. Kestener * \date 28/06/2009 * *...
C/C++ Header
null
20,847
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/riemann.h
/** * \file riemann.h * \brief Provides CPU/GPU riemann solver routines. * * Implement different kinds of Riemann solvers * adapted from original fortran code found in RAMSES . * See file godunov_utils.f90 in RAMSES. * * \author F. Chateau and P. Kestener * * $Id: riemann.h 3452 2014-06-17 10:09:48Z pkestene ...
C/C++ Header
null
11,031
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/constants.h
/** * \file constants.h * \brief Defines some usefull enumerations and constants. * * \author F. Chateau and P. Kestener * * $Id: constants.h 3472 2014-07-02 21:20:49Z pkestene $ */ #ifndef CONSTANTS_H_ #define CONSTANTS_H_ #include "real_type.h" #include "gpu_macros.h" // some macros to avoid too much unused ...
C/C++ Header
null
9,278
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroMpiParameters.h
/** * \file HydroMpiParameters.h * \brief Defines a C++ class gathering MPI-related parameters. * * HydroMpiParameters class inherits HydroParameters which is the serial * version (1 CPU/GPU). * * \author P. Kestener * \date 6 Oct 2010 * * $Id: HydroMpiParameters.h 1847 2012-03-19 08:35:51Z pkestene $ */ #if...
C/C++ Header
null
2,002
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/mhd_godunov_mpi_unsplit_cpu_v1.cpp
#include "MHDRunGodunovMpi.h" #include "constoprim.h" #include "riemann_mhd.h" #include "trace_mhd.h" namespace hydroSimu { // ======================================================= // ======================================================= void MHDRunGodunovMpi::godunov_unsplit_cpu_v1(HostArray<real_t>& h_UO...
C++
null
19,011
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/relaxingTVD.h
/** * \file relaxingTVD.h * \brief Some utilities used either in the CPU or GPU version of the relaxing TVD scheme. * * \date 25-Jan-2011 * \author P. Kestener * * $Id: relaxingTVD.h 1784 2012-02-21 10:34:58Z pkestene $ */ #ifndef RELAXING_TVD_H_ #define RELAXING_TVD_H_ #include "real_type.h" #include "consta...
C/C++ Header
null
2,197
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/structureFunctionsMpi.h
/** * \file structureFunctionsMpi.h * * Compute structure functions with MPI enabled. * See src/analysis/structureFunctionsMpi.cpp for algorithm description. * * \author Pierre Kestener * \date 29 June 2014 * * $Id: structureFunctionsMpi.h 3467 2014-06-30 10:21:44Z pkestene $ */ #ifndef STRUCTURE_FUNCTIONS_MP...
C/C++ Header
null
1,125
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunGodunovMpi.h
/** * \file HydroRunGodunovMpi.h * \brief * This class is a direct transposition of HydroRunGodunov but can handle * MPI+CUDA computations. * * \date 19 Oct 2010 * \author Pierre Kestener * * $Id: HydroRunGodunovMpi.h 2431 2012-09-27 13:42:20Z pkestene $ */ #ifndef HYDRORUN_GODUNOV_MPI_H_ #define HYDRORUN_GO...
C/C++ Header
null
7,611
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/turbulenceInit.h
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C/C++ Header
null
1,216
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/slope.h
/** * \file slope.h * \brief Compute primitive variables slope dq from a given q state and its * adjacent neighbors. * * \author Pierre Kestener * \date 16 Nov 2010 * * $Id: slope.h 1832 2012-03-15 14:58:50Z pkestene $ */ #ifndef SLOPE_H_ #define SLOPE_H_ #include "real_type.h" #include "constants.h" #includ...
C/C++ Header
null
20,838
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/MHDRunGodunovZslab.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C++
null
121,370
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/initHydro.h
/** * \file initHydro.h * \brief Implement initialization routine to solve a 2D Riemann * problem. * * In the 2D case, there are 19 different possible configurations (see * article by Lax and Liu, "Solution of two-dimensional riemann * problems of gas dynamics by positive schemes",SIAM journal on * scientific c...
C/C++ Header
null
1,345
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/gpu_macros.h
/** * \file gpu_macros.h * \brief Some useful GPU related macros. * * \author P. Kestener * * $Id: gpu_macros.h 1784 2012-02-21 10:34:58Z pkestene $ */ #ifndef GPU_MACROS_H_ #define GPU_MACROS_H_ #include <cmath> //#include "real_type.h" #ifdef __CUDACC__ #define __CONSTANT__ __constant__ #define __GLOBAL__ _...
C/C++ Header
null
1,637
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/mpiBorderUtils.h
/** * \file mpiBorderUtils.h * \brief Some utility routines dealing with MPI border buffers. * * \date 13 Oct 2010 * \author Pierre Kestener * * $Id: mpiBorderUtils.h 1784 2012-02-21 10:34:58Z pkestene $ */ #ifndef MPI_BORDER_UTILS_H_ #define MPI_BORDER_UTILS_H_ #include "Arrays.h" #include "constants.h" #ifd...
C/C++ Header
null
16,935
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/cutil.h
/** * \file cutil.h * \brief Some utility routines from the CUDA SDK. * * $Id: cutil.h 1784 2012-02-21 10:34:58Z pkestene $ * */ /* * Copyright 1993-2009 NVIDIA Corporation. All rights reserved. * * NVIDIA Corporation and its licensors retain all intellectual property and * proprietary rights in and to this sof...
C/C++ Header
null
47,353
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/kurganov-tadmor.h
/** * \file kurganov-tadmor.h * \brief Intermediate routines used in the Kurganov-Tadmor scheme. * * Implement small CPU routine working on small local data (and their * GPU __DEVICE__ counterparts) * * \date 05/02/2010 * \author Pierre Kestener * * $Id: kurganov-tadmor.h 1784 2012-02-21 10:34:58Z pkestene ...
C/C++ Header
null
2,209
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunLaxLiu.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C++
null
9,936
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunLaxLiu.h
/** * \file HydroRunLaxLiu.h * \brief Defines a class to perfrom hydro simulations following the * scheme proposed in article: P.D. Lax, X.-D. Liu, "Solution of * Two-Dimensional Riemann Problems of Gas Dynamics by Positive * Schemes", SIAM J. Sci. Comput., vol. 19, pp. 319-340, (1998). * * \date January 2010 *...
C/C++ Header
null
1,823
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/gpu_macros.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C++
null
1,039
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunKT.h
/** * \file HydroRunKT.h * \brief * Class HydroRunKT derives from HydroRunBase, and * implement a fully discrete central scheme as described by Kurganov * and Tadmor (KT) to solve Euler equation. * * Some of the code is derived and adapted from CentPack * http://www.cscamm.umd.edu/centpack/ * See also original...
C/C++ Header
null
2,084
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunGodunovMpi.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C++
null
123,330
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunGodunovZslabMpi.h
/** * \file HydroRunGodunovZslabMpi.h * \brief * This class is a direct transposition of HydroRunGodunovZslab but can handle * MPI+CUDA computations. * * \date September 27, 2012 * \author Pierre Kestener * * $Id: HydroRunGodunovZslabMpi.h 2431 2012-09-27 13:42:20Z pkestene $ */ #ifndef HYDRORUN_GODUNOV_ZSLA...
C/C++ Header
null
6,491
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/structureFunctions.cpp
/** * \file structureFunctions.cpp * * Compute structure functions for mono-CPU or mono-GPU. * See src/analysis/structureFunctionsMpi.cpp for algorithm description. * * \author Pierre Kestener * \date 29 June 2014 * * $Id: structureFunctions.cpp 3469 2014-07-02 12:39:45Z pkestene $ */ #include "structureFunct...
C++
null
39,819
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/common_types.h
/** * \file common_types.h * \brief Defines some custom types for compatibility with CUDA. * * \author P. Kestener * \date 29/06/2009 * * $Id: common_types.h 1784 2012-02-21 10:34:58Z pkestene $ */ #ifndef COMMON_TYPES_H_ #define COMMON_TYPES_H_ #include "real_type.h" /* if not using CUDA, then defines custo...
C/C++ Header
null
2,665
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunGodunovZslab.h
/** * \file HydroRunGodunovZslab.h * \brief Godunov Hydro run simulation with z-slab method. * * The new class HydroRunGodunovZslab derives from HydroRunBase, and * implement Godunov's scheme by solving local Riemann problem's at * cells interfaces and using a piece-by-piece method (z-slab). * * \date September...
C/C++ Header
null
7,271
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/base_type.h
/** * \file base_type.h * \brief Defines some usefull base types. * * The idea is the replace declaration of type real_t array (for hydro state) by * a structure. * * \date March 14, 2012 * \author Pierre Kestener * * $Id: base_type.h 2395 2012-09-14 12:45:17Z pkestene $ */ #ifndef BASE_TYPE_H_ #define BASE_...
C/C++ Header
null
1,171
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/utilities.h
/** * \file utilities.h * \brief Some utility macros. * * \date 9-March-2011 * \author P. Kestener * * $Id: utilities.h 1784 2012-02-21 10:34:58Z pkestene $ */ #ifndef UTILITIES_H_ #define UTILITIES_H_ inline bool isBigEndian() { const int i = 1; return ( (*(char*)&i) == 0 ); } #endif /* UTILITIES_H_ */
C/C++ Header
null
319
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/structureFunctions.h
/** * \file structureFunctions.h * * Compute structure functions for mono-CPU or mono-GPU. * See src/analysis/structureFunctionsMpi.cpp for algorithm description. * * \author Pierre Kestener * \date 29 June 2014 * * $Id: structureFunctions.h 3465 2014-06-29 21:28:48Z pkestene $ */ #ifndef STRUCTURE_FUNCTIONS_...
C/C++ Header
null
1,065
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/MHDRunGodunovMpi.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C++
null
152,372
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunRelaxingTVD.h
/** * \file HydroRunRelaxingTVD.h * \brief Implement the relaxing TVD fluid solver by Trac and Pen. * * The relaxing TVD fluid solver scheme is described in: * "A primer on Eulerian Computational Fluid Dynamics for * Astrophysics", by H. trac and U.-L. Pen, Publications of the * astronomical society of the pacif...
C/C++ Header
null
2,770
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/vtk_inc.h
/** * \file vtk_inc.h * \brief Gather all vtk related headers here. * * \author Pierre Kestener. * \date 8-July-2010 * * $Id: vtk_inc.h 1784 2012-02-21 10:34:58Z pkestene $ */ #ifndef VTK_INC_H_ #define VTK_INC_H_ // the following symbol prevents some nasting warning about deprecated // strstream header #defin...
C/C++ Header
null
628
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/riemann_mhd.h
/** * \file riemann_mhd.h * \brief Provides CPU/GPU riemann solver routines for MHD. * * We can't put everything in a single header because it might lead to * linking problems if the file is included in more than one * implementation file. * * It is also annoying to put these routine in a dedicated * implement...
C/C++ Header
null
39,063
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/structureFunctionsMpi.cpp
/** * \file structureFunctionsMpi.cpp * * Compute structure functions with MPI enabled. * See src/analysis/structureFunctionsMpi.cpp for algorithm description. * * \author Pierre Kestener * \date 29 June 2014 * * $Id: structureFunctionsMpi.cpp 3541 2014-09-14 08:33:12Z pkestene $ */ #include "structureFunctio...
C++
null
51,234
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunBase.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the terms...
C++
null
238,615
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/cutil_inline_runtime.h
/** * \file cutil_inline_runtime.h * \brief Some utility routines from the CUDA SDK. * * * $Id: cutil_inline_runtime.h 1784 2012-02-21 10:34:58Z pkestene $ */ /* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * NVIDIA Corporation and its licensors retain all intellectual property and * pro...
C/C++ Header
null
10,748
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/initHydro.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C++
null
10,759
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/MHDRunGodunov.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C++
null
133,894
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/cmpflx.h
/** * \file cmpflx.h * \brief Implements the CPU/GPU device routines to compute fluxes update * from the Godunov state. * * \author F. Chateau * * $Id: cmpflx.h 1784 2012-02-21 10:34:58Z pkestene $ */ #ifndef CMPFLX_H_ #define CMPFLX_H_ #include "real_type.h" #include "constants.h" /** * Compute cell fluxes...
C/C++ Header
null
1,747
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/MHDRunGodunovZslabMpi.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C++
null
161,232
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/positiveScheme.h
/** * \file positiveScheme.h * \brief Intermediate routines used in the positive schemetime step evolution. * * Most of the routine defined here are translated/adapted from the * original code found in article by Lax and Liu, "Solution of the two-dimensional * Riemann problems of gas dynamics by positive schemes"...
C/C++ Header
null
8,570
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/make_boundary_common.h
/** * \file make_boundary_common.h * \brief Some constant parameter used for CUDA kernels geometry. * * We put these parameters in a separate header so that it can be safely included * in multiple file (no need to have the full CUDA kernel definition included several * times). * * \date 2 Feb 2012 * \author Pi...
C/C++ Header
null
731
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/GetPot.h
/** * \file GetPot.h * \brief A very simple header-only configuration file and * command-line parser utility. * * \note http://getpot.sourceforge.net/ */ // -*- c++ -*- vim: set syntax=cpp: // GetPot Version $$Version$$ $$Date$$ // // WEBSITE: http://getpot.sourceforge.net /...
C/C++ Header
null
86,781
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunGodunovZslab.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C++
null
78,417
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/MHDRunGodunovZslabMpi.h
/** * \file MHDRunGodunovMpiZslab.h * \brief Define class MHDRunGodunovMpiZslab (see MHDRunGodunov for mono * CPU/GPU version) containing the actual numerical scheme for solving MHD. * * 3D only MHD solver (multi CPU or multi GPU) MPI version. * The class MHDRunGodunovMpiZslab is adapted and simplified from the ...
C/C++ Header
null
12,592
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/mhd_godunov_mpi_unsplit_cpu_v2.cpp
#include "MHDRunGodunovMpi.h" #include "constoprim.h" #include "riemann_mhd.h" #include "trace_mhd.h" namespace hydroSimu { // ======================================================= // ======================================================= void MHDRunGodunovMpi::godunov_unsplit_cpu_v2(HostArray<real_t>& h_UO...
C++
null
15,215
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroParameters.h
/** * \file HydroParameters.h * \brief Defines a C++ structures gathering simulation parameters. * * Hydrodynamics simulation parameters are declared in the same order as in * original namelists from fortran file read_params.f90. * * \author P. Kestener * \date 28/06/2009 * * $Id: HydroParameters.h 3236 2014-...
C/C++ Header
null
21,566
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/RandomGenTest.cpp
/* * g++ -o RandomGenTest RandomGenTest.cpp RandomGen.cpp -lm * */ #include "RandomGen.h" #include <cstdlib> #include <cstdio> int main (int argc, char *argv[]) { int ncpu=4, ndim=3,i,nmode=31,init_rand=600; double mode[ndim][nmode]; double fourforce[ndim][nmode]; double projtens[ndim][ndim][nmode]; in...
C++
null
930
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroMpiParameters.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C++
null
9,040
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunGodunovZslabMpi.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C++
null
78,311
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/mhd_godunov_unsplit_cpu_v0.cpp
#include "MHDRunGodunov.h" #include "constoprim.h" #include "riemann_mhd.h" #include "trace_mhd.h" /** a dummy device-only swap function */ static void swap_v(real_t& a, real_t& b) { real_t tmp = a; a = b; b = tmp; } // swap_v namespace hydroSimu { // ===============================================...
C++
null
37,497
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/Forcing_OrnsteinUhlenbeck.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C++
null
22,466
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/mhd_utils.h
/** * \file mhd_utils.h * \brief Small MHD related utilities common to CPU / GPU code. * * These utility functions (find_speed_fast, etc...) are directly * adapted from Fortran original code found in RAMSES/DUMSES. * * \date 23 March 2011 * \author Pierre Kestener. * * $Id: mhd_utils.h 3462 2014-06-25 10:12:5...
C/C++ Header
null
7,798
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/MHDRunGodunovMpi.h
/** * \file MHDRunGodunovMpi.h * \brief Define class MHDRunGodunovMpi (see MHDRunGodunov for mono * CPU/GPU version) containing the actual numerical scheme for solving MHD. * * 2D/3D MHD solver (multi CPU or multi GPU) MPI version. * The class MHDRunGodunovMpi is adapted and simplified from the * mono-CPU / mono...
C/C++ Header
null
16,367
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/constoprim.h
/** * \file constoprim.h * \brief Commonly used function to compute primitive variables from * conservatibes variables. * * \author F. Chateau, P. Kestener * * $Id: constoprim.h 3587 2014-11-01 21:57:10Z pkestene $ */ #ifndef CONSTOPRIM_H_ #define CONSTOPRIM_H_ #include "real_type.h" #include "constants.h" /...
C/C++ Header
null
15,054
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/utils.h
/** * \file utils.h * \brief Some general use utilities. * * \author F. Chateau * * $Id: utils.h 1784 2012-02-21 10:34:58Z pkestene $ */ #ifndef UTILS_H_ #define UTILS_H_ enum FPUPrecision { FPUSingle = 0, FPUDouble = 1, FPUExtended = 2 }; void unix_gettimeofday(int* sec, int* usec); void set_fpu_precision(en...
C/C++ Header
null
365
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/cutil_inline.h
/** * \file cutil_inline.h * \brief Some utility routines from the CUDA SDK. * * $Id: cutil_inline.h 1784 2012-02-21 10:34:58Z pkestene $ * */ /* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * NVIDIA Corporation and its licensors retain all intellectual property and * proprietary rights ...
C/C++ Header
null
1,316
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/MHDRunGodunovZslab.h
/** * \file MHDRunGodunovZslab.h * \brief Define class MHDRunGodunovZslab (see MHDRunGodunov) containing * the actual numerical scheme for solving MHD with z-slab method. * * \date Sept 17, 2012 * \author Pierre Kestener * * $Id: MHDRunGodunovZslab.h 2410 2012-09-19 09:24:52Z pkestene $ */ #ifndef MHD_RUN_GODU...
C/C++ Header
null
10,310
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/ostream_fmt.h
/** * \file ostream_fmt.h * \brief Simplifies the use of iomanip * * Taken from the book "Scientific Software Design" by D. Rouson et al. * * \date January 30, 2012 * * $Id: ostream_fmt.h 1784 2012-02-21 10:34:58Z pkestene $ */ #ifndef OSTREAM_FMT_H_ #define OSTREAM_FMT_H_ #include "real_type.h" #include <vec...
C/C++ Header
null
1,200
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/geometry_utils.h
/** * \file geometry_utils.h * \brief Small geometry related utilities common to CPU / GPU code. * * This utility function (compute_ds_dv) is directly * adapted from Fortran original code found in DUMSES. * * \date 20 January 2012 * \author Pierre Kestener. * * $Id: geometry_utils.h 1784 2012-02-21 10:34:58Z ...
C/C++ Header
null
2,404
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/mhd_godunov_unsplit_cpu_v1.cpp
#include "MHDRunGodunov.h" #include "constoprim.h" #include "riemann_mhd.h" #include "trace_mhd.h" namespace hydroSimu { // ======================================================= // ======================================================= void MHDRunGodunov::godunov_unsplit_cpu_v1(HostArray<real_t>& h_UOld, ...
C++
null
21,509
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/constants.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C++
null
1,929
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/gl_util.h
/** * \file gl_util.h * \brief Defines a macro handling OpenGL errors. * * * $Id: gl_util.h 1784 2012-02-21 10:34:58Z pkestene $ */ #ifndef _GL_UTIL_H_ #define _GL_UTIL_H_ // the following macro is copied from Inria/axel; // see file raycaster/axl/QCUDAImplicitRayCaster/include/QCUDAImplicitRayCaster/QCIRC_inte...
C/C++ Header
null
795
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/zSlabInfo.h
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C/C++ Header
null
1,263
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunGodunov.h
/** * \file HydroRunGodunov.h * \brief * This file was originally designed by F. Chateau and called HydroRun.h * In the process of removing the coupling between fortran and Cuda; the * original file HydroRun was splitted into HydroRunBase class, so that we * can derive from it and have access to base routines (b...
C/C++ Header
null
9,167
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunRelaxingTVD.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C++
null
30,511
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/Forcing_OrnsteinUhlenbeck.h
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C/C++ Header
null
3,784
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/mhd_godunov_unsplit_cpu_v3.cpp
#include "MHDRunGodunov.h" #include "constoprim.h" #include "riemann_mhd.h" #include "trace_mhd.h" namespace hydroSimu { // ======================================================= // ======================================================= void MHDRunGodunov::godunov_unsplit_cpu_v3(HostArray<real_t>& h_UOld, ...
C++
null
23,489
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/MHDRunBase.h
/** * \file MHDRunBase.h * \brief Defines a base C++ class to implement magneto-hydrodynamics (MHD) simulations. * * MHDRunBase class is base class that gather all functionality * usefull to real MHD simulation implementation (see * MhdRunGodunov for example). * * MHDRunBase derives from HydroRunBase (so that t...
C/C++ Header
null
8,820
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/turbulenceInit.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C++
null
6,289
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/MHDRunBase.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the terms...
C++
null
112,094
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/shearBorderUtils.h
/** * \file shearBorderUtils.h * \brief Some utility routines dealing with shearing border buffers. * * \date 3 February 2012 * \author Pierre Kestener * * $Id: shearBorderUtils.h 1792 2012-02-23 11:46:41Z pkestene $ */ #ifndef SHEAR_BORDER_UTILS_H_ #define SHEAR_BORDER_UTILS_H_ #include "Arrays.h" #include "c...
C/C++ Header
null
6,970
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/mhd_godunov_mpi_unsplit_cpu_v3.cpp
#include "MHDRunGodunovMpi.h" #include "constoprim.h" #include "riemann_mhd.h" #include "trace_mhd.h" namespace hydroSimu { // ======================================================= // ======================================================= void MHDRunGodunovMpi::godunov_unsplit_cpu_v3(HostArray<real_t>& h_UO...
C++
null
23,880
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunBaseMpi.h
/** * \file HydroRunBaseMpi.h * \brief Defines a base C++ class to implement hydrodynamics * simulations in MPI environement. * * HydroRunBaseMpi class is the symetric to HydroRunBase. * * \author P. Kestener * \date 12 Oct 2010 * * $Id: HydroRunBaseMpi.h 3595 2014-11-04 12:27:24Z pkestene $ */ #ifndef HYDRO...
C/C++ Header
null
28,928
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/mhd_godunov_unsplit_cpu_v2.cpp
#include "MHDRunGodunov.h" #include "constoprim.h" #include "riemann_mhd.h" #include "trace_mhd.h" namespace hydroSimu { // ======================================================= // ======================================================= void MHDRunGodunov::godunov_unsplit_cpu_v2(HostArray<real_t>& h_UOld, ...
C++
null
16,115
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunKT.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C++
null
13,220
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/slope_mhd.h
/** * \file slope_mhd.h * \brief Compute primitive variables slope dq from a given q state and its * adjacent neighbors. * * \author Pierre Kestener * \date March 31, 2011 * * $Id: slope_mhd.h 2427 2012-09-26 15:02:51Z pkestene $ */ #ifndef SLOPE_MHD_H_ #define SLOPE_MHD_H_ #include "real_type.h" #include "co...
C/C++ Header
null
25,491
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/real_type.h
/** * \file real_type.h * \brief Define macros to switch single/double precision. * * \note avoid using typename class templates. * * \author P. Kestener * \date 25-03-2010 * * $Id: real_type.h 1784 2012-02-21 10:34:58Z pkestene $ * */ #ifndef REAL_TYPE_H_ #define REAL_TYPE_H_ #ifdef __CUDACC__ //#include ...
C/C++ Header
null
2,258
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunBaseMpi.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the terms...
C++
null
362,845
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/utils.c
/** * \file utils.c * \brief Some general use utilities. * * \author F. Chateau */ #include "utils.h" #include <sys/time.h> #include <fpu_control.h> /* A Fortran-callable gettimeofday routine to give access * to the wall clock timer. */ void unix_gettimeofday(int* sec, int* usec) { struct timeval tp; gettimeo...
C
null
670
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/RandomGen.h
#ifndef RANDOM_GEN_H_ #define RANDOM_GEN_H_ #include <stdlib.h> // for rand /** * \struct RandomGen RandomGen.h * * Rewrite some of the random generator function used in Ramses * which I believe are borrowed from ASC Sequoia benchmark / SPhot. * */ struct RandomGen { static const int IRandNumSize = 4; sta...
C/C++ Header
null
2,041
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/trace.h
/** * \file trace.h * \brief Handle trace computation in the Godunov scheme. * * \author F. Chateau and P. Kestener * * $Id: trace.h 3450 2014-06-16 22:03:23Z pkestene $ */ #ifndef TRACE_H_ #define TRACE_H_ #include "real_type.h" #include "constants.h" #include "slope.h" /** * Trace computations for direction...
C/C++ Header
null
24,268
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/RandomGen.cpp
/** * \file RandomGen.cpp * \brief Adapt random.f90 from original ramses code. * * \note See also C++11 random capabilities : * http://en.cppreference.com/w/cpp/numeric/random * * \date Dec 19, 2013 * * $Id: RandomGen.cpp 3465 2014-06-29 21:28:48Z pkestene $ */ /* *====================================...
C++
null
13,411
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/CMakeLists.txt
add_library(hydro "") target_sources(hydro PRIVATE gpu_macros.cpp constants.cpp turbulenceInit.cpp structureFunctions.cpp initHydro.cpp RandomGen.cpp Forcing_OrnsteinUhlenbeck.cpp HydroRunBase.cpp HydroRunGodunov.cpp HydroRunKT.cpp HydroRunRelaxingTVD.cpp MHDRunBase.cpp MHDRunGodunov.cpp ...
Text
null
2,409
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/HydroRunGodunov.cpp
/* * Copyright CEA / Maison de la Simulation * Contributors: Pierre Kestener, Sebastien Fromang (May 22, 2012) * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software. You can use, * modify and/ or redistribute the software under the term...
C++
null
129,989
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/trace_mhd.h
/** * \file trace_mhd.h * \brief Handle trace computation in the MHD Godunov scheme. * * \date March 31, 2011 * \author Pierre Kestener * * $Id: trace_mhd.h 3450 2014-06-16 22:03:23Z pkestene $ */ #ifndef TRACE_MHD_H_ #define TRACE_MHD_H_ #include "real_type.h" #include "constants.h" #include "slope_mhd.h" /*...
C/C++ Header
null
73,437
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/make_boundary_shear.h
/** * \file make_boundary_shear.h * \brief Provides several routines of boundary conditions for shearing box. * * \date 23 Feb 2012 * \author P. Kestener * * $Id: make_boundary_shear.h 3450 2014-06-16 22:03:23Z pkestene $ */ #ifndef MAKE_BOUNDARY_SHEAR_H_ #define MAKE_BOUNDARY_SHEAR_H_ #include "real_type.h" #...
C/C++ Header
null
15,336
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/MHDRunGodunov.h
/** * \file MHDRunGodunov.h * \brief Define class MHDRunGodunov (see HydroRunGodunov) containing * the actual numerical scheme for solving MHD. * * \date March 31, 2011 * \author Pierre Kestener * * $Id: MHDRunGodunov.h 3323 2014-03-06 16:05:22Z pkestene $ */ #ifndef MHD_RUN_GODUNOV_H_ #define MHD_RUN_GODUNOV_...
C/C++ Header
null
14,894
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/hydro/make_boundary_base.h
/** * \file make_boundary_base.h * \brief Provides several routines of boundary conditions * computations on both CPU and GPU (via CUDA kernels) versions of the code. * * \note The primary author of this file is F. Chateau. * P. Kestener provided modifications to handle the 3d case and also * periodic BC. Furth...
C/C++ Header
null
69,131
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/qtGui/CMakeLists.txt
add_subdirectory(qtHelloWorld) #add_subdirectory(qtHydro2d)
Text
null
60
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/qtGui/qtHydro2d/HydroWidgetGpu.h
/** * \file HydroWidgetGpu.h * \brief * OpenGL Widget to display HydroRun simulation (CUDA version). * * \author Pierre Kestener * \date 8 Oct 2010 */ #ifndef HYDRO_WIDGET_GPU_H_ #define HYDRO_WIDGET_GPU_H_ #include "HydroWidget.h" using hydroSimu::DeviceArray; /** use the graphics OpenGL/CUDA interoperabilit...
C/C++ Header
null
1,389
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/qtGui/qtHydro2d/main.cpp
/** * \file qtHydro2d/main.cpp * \brief QT-based applications to display hydro simulations results * in real-time. * * \note Note that the GPU-based computations uses the CUDA/OpenGL * inter-operability routines. * * \date 11-03-2010 * \author Pierre Kestener */ #include <QApplication> #include "MainWindow....
C++
null
10,206
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/qtGui/qtHydro2d/HydroWidget.h
/** * \file HydroWidget.h * \brief * OpenGL Widget to display HydroRun simulation (QGLWidget specialization). * * \author Pierre Kestener * \date 14-03-2010 */ #ifndef HYDRO_WIDGET_H_ #define HYDRO_WIDGET_H_ // Qt headers #include <QGLWidget> // application header #include <ConfigMap.h> #include <HydroRunBase....
C/C++ Header
null
1,926
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/qtGui/qtHydro2d/HydroWidget.cpp
/** * \file HydroWidget.cpp * \brief Implements class HydroWidget. * * \author Pierre Kestener * \date 14-03-2010 */ #include <GL/glew.h> #include <QtGui> #include <QtOpenGL> #include <QSizePolicy> #include <math.h> #include <cstdio> // application header #include "HydroWidget.h" #include "gl_util.h" // ====...
C++
null
22,055
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/qtGui/qtHydro2d/MainWindow.h
/** * \file MainWindow.h * \brief Defines the top level QT windows. * * \date 11-03-2010 * \author Pierre Kestener */ #ifndef MAIN_WINDOW_H_ #define MAIN_WINDOW_H_ #include <QWidget> #include <ConfigMap.h> #include "HydroWidget.h" #include <QGroupBox> #include <QLabel> /** * \class MainWindow MainWindow.h * ...
C/C++ Header
null
785
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/qtGui/qtHydro2d/MainWindow.cpp
/** * \file MainWindow.cpp * \brief Implements the top level QT windows. * * \date 11-03-2010 * \author Pierre Kestener */ #include <QtWidgets> #include "MainWindow.h" // ======================================================= // ======================================================= MainWindow::MainWindow(Co...
C++
null
5,767
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/qtGui/qtHelloWorld/glwidget.h
/** * \file glwidget.h * \brief Defines a very simple example of use of QT class QGLWidget. */ /**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is par...
C/C++ Header
null
3,232
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/qtGui/qtHelloWorld/CMakeLists.txt
# Populate a CMake variable with the sources add_executable(qtHelloWorld "") target_sources(qtHelloWorld PUBLIC glwidget.cpp window.cpp main.cpp ) # Use the Widgets module from Qt 5 target_link_libraries(qtHelloWorld Qt5::Widgets Qt5::OpenGL OpenGL)
Text
null
260
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/qtGui/qtHelloWorld/window.cpp
/** * \file window.cpp * \brief QT helloworld application, main window. * */ /**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the examples...
C++
null
3,591
[ascl:1710.013]
https://github.com/pkestene/ramsesGPU
src/qtGui/qtHelloWorld/main.cpp
/** * \file qtHelloWorld/main.cpp * \brief QT helloworld application. * */ /**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the examples o...
C++
null
2,212