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:1011.007]
https://bitbucket.org/rteyssie/ramses
hydro/hydro_flag.f90
subroutine hydro_flag(ilevel) use amr_commons use hydro_commons #ifdef RT use rt_parameters #endif implicit none integer::ilevel ! ------------------------------------------------------------------- ! This routine flag for refinement cells that satisfies ! some user-defined physical criteria at the leve...
Fortran
null
7,345
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
hydro/godunov_fine.f90
!########################################################### !########################################################### !########################################################### !########################################################### subroutine godunov_fine(ilevel) use amr_commons use hydro_commons impl...
Fortran
null
30,547
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
hydro/boundana.f90
!############################################################ !############################################################ !############################################################ !############################################################ subroutine boundana(x,u,dx,ibound,ncell) use amr_parameters, ONLY: dp,...
Fortran
null
1,694
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
hydro/umuscl.f90
! --------------------------------------------------------------- ! UNSPLIT Unsplit second order Godunov integrator for ! polytropic gas dynamics using either ! MUSCL-HANCOCK scheme or Collela's PLMDE scheme ! with various slope limiters. ! ! inputs/outputs ! uin =>...
Fortran
null
51,890
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
hydro/hydro_boundary.f90
!################################################################ !################################################################ !################################################################ !################################################################ subroutine make_boundary_hydro(ilevel) use amr_commons...
Fortran
null
9,867
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/flag_utils.f90
!################################################################ !################################################################ !################################################################ !################################################################ subroutine flag use amr_commons implicit none inte...
Fortran
null
30,287
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/ramses.f90
program ramses implicit none ! Read run parameters call read_params #ifndef CRAY ! Set signal handler call set_signal_handler #endif ! Start time integration call adaptive_loop end program ramses #ifndef CRAY ! sets the hook to catch signal 10, doesn't work with CRAY subroutine set_signal_handler i...
Fortran
null
1,034
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/light_cone.f90
!======================================================================= !======================================================================= !======================================================================= !======================================================================= subroutine output_cone() u...
Fortran
null
32,468
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/adaptive_loop.f90
subroutine adaptive_loop use amr_commons use hydro_commons use pm_commons use poisson_commons use cooling_module #ifdef RT use rt_hydro_commons #endif #if USE_TURB==1 use turb_commons #endif use mpi_mod implicit none #ifndef WITHOUTMPI integer(kind=8)::n_step integer::info,tot_pt real(kind=8)::t...
Fortran
null
7,398
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/refine_utils.f90
subroutine refine use amr_commons implicit none integer::ilevel if(verbose)write(*,*)'Entering refine' call refine_coarse call build_comm(1) call make_virtual_fine_int(cpu_map(1),1) do ilevel=1,nlevelmax-1 call refine_fine(ilevel) call build_comm(ilevel+1) call make_virtual_fine_int(cp...
Fortran
null
33,420
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/random.f90
!======================================================================= ! ! P A R A L L E L R A N D O M N U M B E R G E N E R A T O R ! !======================================================================= ! Here's how to use these functions: ! Initialization: call Rans( N, StartVal, Seeds ) ! This re...
Fortran
null
9,393
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/init_time.f90
subroutine init_time use amr_commons use hydro_commons use pm_commons use cooling_module #ifdef grackle use grackle_parameters #endif #ifdef RT use rt_cooling_module #endif use mpi_mod implicit none integer::i,Nmodel real(kind=8)::T2_sim #ifdef grackle real(dp)::scale_nH,scale_T2,scale_l,scale_d,s...
Fortran
null
30,724
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/constants.f90
module constants use amr_commons, ONLY: dp ! Numerical constants real(dp),parameter ::twopi = 6.2831853d0 real(dp),parameter ::pi = twopi/2d0 real(dp),parameter ::mu_mol = 1.2195d0 ! Physical constants ! Source: ! * SI - SI Brochure (2018) ! * PCAD - http://www.astro.wisc.edu...
Fortran
null
2,228
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/load_balance.f90
!######################################################################### !######################################################################### !######################################################################### !######################################################################### subroutine load_bala...
Fortran
null
44,891
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/update_time.f90
!======================================================================= real(kind=8) function wallclock() use mpi_mod implicit none #ifdef WITHOUTMPI integer, save :: tstart integer :: tcur integer :: count_rate #else real(kind=8), save :: tstart real(kind=8) :: tcur #end...
Fortran
null
15,336
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/output_amr.f90
!######################################################################### !######################################################################### !######################################################################### !######################################################################### subroutine dump_all ...
Fortran
null
22,555
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/sort.f90
SUBROUTINE quick_sort(list, order, n) ! Quick sort routine from: ! Brainerd, W.S., Goldberg, C.H. & Adams, J.C. (1990) "Programmer's Guide to ! Fortran 90", McGraw-Hill ISBN 0-07-000248-7, pages 149-150. ! Modified by Alan Miller to include an associated integer array which gives ! the positions of the elem...
Fortran
null
11,855
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/read_params.f90
subroutine read_params use amr_commons use pm_parameters use poisson_parameters use hydro_parameters use sink_feedback_parameters use mpi_mod implicit none !-------------------------------------------------- ! Local variables !-------------------------------------------------- integer::i,narg,leve...
Fortran
null
17,228
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/title.f90
!======================================================================= subroutine title(n,nchar) !======================================================================= implicit none integer::n character(LEN=5)::nchar character(LEN=1)::nchar1 character(LEN=2)::nchar2 character(LEN=3)::nchar3 character...
Fortran
null
759
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/init_refine.f90
!################################################################ !################################################################ !################################################################ !################################################################ subroutine init_refine use amr_commons use pm_common...
Fortran
null
4,262
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/movie.f90
!======================================================================= !======================================================================= !======================================================================= !======================================================================= subroutine output_frame() ...
Fortran
null
51,742
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/mpi_mod.f90
module mpi_mod #ifndef WITHOUTMPI #ifdef MPI_OLD include 'mpif.h' #else use mpi #endif #endif end module mpi_mod
Fortran
null
117
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/end.f90
subroutine clean_end !--------------------------- ! Properly end the run. !--------------------------- use mpi_mod implicit none #ifndef WITHOUTMPI integer::info #endif character(LEN=80)::str call output_timer(.false., str) #ifndef WITHOUTMPI call MPI_FINALIZE(info) #endif call deallocate_amr ...
Fortran
null
3,832
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/bisection.f90
! KNOWN BUGS: ! * modifying flag1 in bisection causes load balancing to malfunction ! POSSIBLE IMPROVEMENTS ! * cell cost is fixed at 1 for now module bisection use amr_parameters use amr_commons implicit none contains subroutine cmp_bisection_cpumap(x,c,nn) ! This routine takes a ndim x nvector...
Fortran
null
22,901
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/units.f90
subroutine units(scale_l,scale_t,scale_d,scale_v,scale_nH,scale_T2) use amr_commons use hydro_commons use constants, only: Mpc2cm, mH, kB, rhoc use cooling_module, only: X implicit none real(dp)::scale_nH,scale_T2,scale_t,scale_v,scale_d,scale_l !----------------------------------------------------------...
Fortran
null
1,223
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/init_amr.f90
subroutine init_amr use amr_commons use hydro_commons use pm_commons use poisson_commons use bisection use mpi_mod implicit none integer::i,idim,ncell,iskip,ind,ncache,ilevel,ibound,nboundary2 integer::ncpu2,ndim2,nx2,ny2,nz2,ngridmax2,nlevelmax2 integer::noutput2,iout2,ifout2,ilun integer::ix,iy,...
Fortran
null
17,071
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/amr_parameters.f90
module amr_parameters ! Define real types integer,parameter::sp=kind(1.0E0) #ifndef NPRE integer,parameter::dp=kind(1.0E0) ! default #else #if NPRE==4 integer,parameter::dp=kind(1.0E0) ! real*4 #else integer,parameter::dp=kind(1.0D0) ! real*8 #endif #endif #ifdef QUADHILBERT integer,parameter::qdp=kind(1.0...
Fortran
null
19,081
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/physical_boundaries.f90
!################################################################ !################################################################ !################################################################ !################################################################ subroutine init_boundary_coarse use amr_commons impl...
Fortran
null
12,252
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/virtual_boundaries.f90
!################################################################ !################################################################ !################################################################ !################################################################ subroutine authorize_coarse use amr_commons implicit...
Fortran
null
51,968
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/nbors_utils.f90
!############################################################## !############################################################## !############################################################## !############################################################## subroutine get3cubefather(ind_cell_father,nbors_father_cells,& ...
Fortran
null
18,159
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/amr_step.f90
recursive subroutine amr_step(ilevel,icount) use amr_commons use pm_commons use hydro_commons use poisson_commons use tracer_utils, only: reset_tracer_move_flag #ifdef RT use rt_hydro_commons use SED_module use UV_module use coolrates_module, only: update_coolrates_tables use rt_cooling_module, only...
Fortran
null
21,572
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/hilbert.f90
!================================================================ !================================================================ !================================================================ !================================================================ subroutine hilbert1d(x,order,npoint) use amr_parameter...
Fortran
null
6,835
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/memory.f90
subroutine writemem(usedmem) real(kind=4)::usedmem usedmem=real(usedmem)*4096 if(usedmem>1024.**4.)then write(*,999)usedmem/1024.**4. else if (usedmem>1024.**3.) then write(*,998)usedmem/1024.**3. else if (usedmem>1024.**2.) then write(*,997)usedmem/1024.**2. else if (usedmem>1024.) then ...
Fortran
null
2,073
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/file_module.f90
module file_module interface integer(c_int) function c_mkdir(name,mode) BIND(C,NAME="mkdir") USE, INTRINSIC :: ISO_C_BINDING, ONLY : C_PTR, C_CHAR, C_INT character(kind=c_char), dimension(*) :: name integer(C_INT), VALUE :: mode end function c_mkdir end interface contains ! Make a...
Fortran
null
1,303
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/write_gitinfo.f90
subroutine write_gitinfo use amr_commons, ONLY:builddate,patchdir,gitrepo,gitbranch,githash builddate = BUILDDATE patchdir = PATCH gitrepo = GITREPO gitbranch = GITBRANCH githash = GITHASH write(*,*)' ' write(*,'(" compile date = ",A)')TRIM(builddate) write(*,'(" patch dir = ",A)')TRIM(patch...
Fortran
null
520
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
amr/amr_commons.f90
module amr_commons use amr_parameters logical::output_done=.false. ! Output just performed logical::init=.false. ! Set up or run logical::balance=.false. ! Load balance or run logical::shrink=.false. ! Shrink mesh or run in...
Fortran
null
9,258
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pario/output_amr_io.f90
! Copyright (c) 2006-2011 IDRIS/CNRS ! Author: Philippe Wautelet (IDRIS/CNRS), wautelet@idris.fr ! Distributed under the CeCILL 2.0 license. For full terms see the file LICENSE. !TODO: use pack/unpack! #ifdef IOPROC #ifndef WITHOUTMPI subroutine backup_amr_send use amr_commons use hydro_commons use io_paramet...
Fortran
null
19,280
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pario/output_part_io.f90
! Copyright (c) 2006-2011 IDRIS/CNRS ! Author: Philippe Wautelet (IDRIS/CNRS), wautelet@idris.fr ! Distributed under the CeCILL 2.0 license. For full terms see the file LICENSE. #ifdef IOPROC #ifndef WITHOUTMPI subroutine backup_part_send use amr_commons use pm_commons use io_parameters use mpi_mod use tim...
Fortran
null
6,937
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pario/init_comm.f90
! Copyright (c) 2006-2011 IDRIS/CNRS ! Author: Philippe Wautelet (IDRIS/CNRS), wautelet@idris.fr ! Distributed under the CeCILL 2.0 license. For full terms see the file LICENSE. #ifndef WITHOUTMPI ! This subroutine is executed by every process subroutine init_comm use amr_commons use mpi_mod implicit none in...
Fortran
null
3,392
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pario/output_hydro_io.f90
! Copyright (c) 2006-2011 IDRIS/CNRS ! Author: Philippe Wautelet (IDRIS/CNRS), wautelet@idris.fr ! Distributed under the CeCILL 2.0 license. For full terms see the file LICENSE. #ifdef IOPROC #ifndef WITHOUTMPI subroutine backup_hydro_send use amr_commons use hydro_commons use io_parameters use mpi_mod use...
Fortran
null
5,688
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pario/utils.f90
! Copyright (c) 2007-2011 IDRIS/CNRS ! Author: Philippe Wautelet (IDRIS/CNRS), wautelet@idris.fr ! Distributed under the CeCILL 2.0 license. For full terms see the file LICENSE. #ifndef WITHOUTMPI subroutine comp_offsets_sizes_by_level() use amr_commons,only:mpi_comm_comp,myid,ncpu,nboundary,nlevelmax,numbb,numbl ...
Fortran
null
4,770
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pario/io_commons.f90
! Copyright (c) 2006-2011 IDRIS/CNRS ! Author: Philippe Wautelet (IDRIS/CNRS), wautelet@idris.fr ! Distributed under the CeCILL 2.0 license. For full terms see the file LICENSE. module io_parameters integer,parameter::TAG_BAK_AMR=1000 integer,parameter::TAG_BAK_HYD=1001 integer,parameter::TAG_BAK_PAR=1002 inte...
Fortran
null
1,422
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pario/mpiio.f90
! Copyright (c) 2007-2011 IDRIS/CNRS ! Author: Philippe Wautelet (IDRIS/CNRS), wautelet@idris.fr ! Distributed under the CeCILL 2.0 license. For full terms see the file LICENSE. #ifdef MPIIO module ramses_mpiio use amr_commons,only:MPI_COMM_COMP use mpi_mod implicit none interface mpiio_write_distrib_var ...
Fortran
null
27,050
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pario/io_loop.f90
! Copyright (c) 2006-2011 IDRIS/CNRS ! Author: Philippe Wautelet (IDRIS/CNRS), wautelet@idris.fr ! Distributed under the CeCILL 2.0 license. For full terms see the file LICENSE. #ifdef IOPROC subroutine io_loop use amr_commons use io_commons use mpi_mod implicit none integer::i,ierr,ilun=ILUN_IO,size,type_o...
Fortran
null
11,431
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pario/output_cooling_io.f90
! Copyright (c) 2006-2011 IDRIS/CNRS ! Author: Philippe Wautelet (IDRIS/CNRS), wautelet@idris.fr ! Distributed under the CeCILL 2.0 license. For full terms see the file LICENSE. #ifdef IOPROC #ifndef WITHOUTMPI !subroutine output_cool_send => see in cooling_module subroutine output_cool_recv use amr_commons use...
Fortran
null
3,174
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pario/hints.f90
! Copyright (c) 2010-2011 IDRIS/CNRS ! Author: Philippe Wautelet (IDRIS/CNRS), wautelet@idris.fr ! Distributed under the CeCILL 2.0 license. For full terms see the file LICENSE. !TODO: faire attention au communicateur module hints use mpi_mod implicit none private public :: hints_init public :: hints_fina...
Fortran
null
9,943
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pario/output_poisson_io.f90
! Copyright (c) 2006-2011 IDRIS/CNRS ! Author: Philippe Wautelet (IDRIS/CNRS), wautelet@idris.fr ! Distributed under the CeCILL 2.0 license. For full terms see the file LICENSE. #ifdef IOPROC #ifndef WITHOUTMPI subroutine backup_poisson_send use amr_commons use poisson_commons use io_parameters use timer u...
Fortran
null
4,230
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pario/transfer.c
/* Copyright (c) 2006-2011 IDRIS/CNRS Author: Philippe Wautelet (IDRIS/CNRS), wautelet@idris.fr Distributed under the CeCILL 2.0 license. For full terms see the file LICENSE. */ #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/statvfs.h> #define BUF...
C
null
3,279
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pario/pnetcdf.f90
! Copyright (c) 2007-2011 IDRIS/CNRS ! Author: Philippe Wautelet (IDRIS/CNRS), wautelet@idris.fr ! Distributed under the CeCILL 2.0 license. For full terms see the file LICENSE. #ifdef PNETCDF module ramses_pnetcdf use amr_commons,only:MPI_COMM_COMP,myid,pario_version,ramses_version use mpi_mod use pnetcdf imp...
Fortran
null
36,267
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pario/hdf5.f90
! Copyright (c) 2007-2011 IDRIS/CNRS ! Author: Philippe Wautelet (IDRIS/CNRS), wautelet@idris.fr ! Distributed under the CeCILL 2.0 license. For full terms see the file LICENSE. #ifdef HDF5 ! TODO: que faire ds le cas ou la taille du tableau lu a change depuis ! l'ecriture? (ngridmax par exemple) module ramses_hdf5 ...
Fortran
null
65,895
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
io/dump_utils.f90
module dump_utils use iso_fortran_env implicit none private interface generic_dump module procedure logicaldump module procedure int8dump module procedure int16dump module procedure int32dump module procedure int64dump module procedure real32dump module procedure real64dump ...
Fortran
null
4,414
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/gadgetreadfile.f90
MODULE gadgetreadfilemod ! ! Routines to read L-Gadget2 particle data files in Fortran ! Adapted from http://astro.dur.ac.uk/~jch/password_pages/index.html ! ! CHARACTER(LEN=*) :: basefile - the base snapshot name. It may get a file id added ! ! ! ! ! Data type corresponding to gadget file header TYPE gadgetheadertyp...
Fortran
null
9,157
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/move_fine.f90
subroutine move_fine(ilevel) use amr_commons use pm_commons use mpi_mod implicit none integer::ilevel !---------------------------------------------------------------------- ! Update particle position and time-centred velocity at level ilevel. ! If particle sits entirely in level ilevel, then use fine g...
Fortran
null
16,782
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/init_part.f90
subroutine init_part use amr_commons use pm_commons use clfind_commons #ifdef RT use rt_parameters,only: convert_birth_times #endif use mpi_mod implicit none !------------------------------------------------------------ ! Allocate particle-based arrays. ! Read particles positions and velocities from ...
Fortran
null
43,714
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/remove_list.f90
!################################################################ !################################################################ !################################################################ !################################################################ subroutine remove_list(ind_part,ind_grid,ok,np) use am...
Fortran
null
2,371
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/sink_feedback_parameters.f90
module sink_feedback_parameters use amr_parameters,only:dp ! STELLAR_PARAMS namelist: parameters for spawning stellar particles integer:: nstellarmax ! maximum number of stellar objects real(dp):: imf_index, imf_low, imf_high ! power-law IMF model: PDF index (dN/dM), lower and higher mass bo...
Fortran
null
3,061
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/move_tracer.f90
subroutine move_tracer_fine(ilevel) use amr_commons, only: headl, numbl, next, nvector, myid use pm_commons, only: typep, headp, numbp, nextp, move_flag use pm_commons, only: is_gas_tracer, is_star_tracer, is_cloud_tracer, part_t implicit none integer, intent(in) :: ilevel integer :: ig, ip, igrid, ...
Fortran
null
14,185
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/read_sink_feedback_params.f90
subroutine read_stellar_params() use amr_commons, only: myid use pm_commons, only: iseed use amr_parameters, only: dp,stellar use sink_feedback_parameters #ifdef RT use rt_parameters, only: nGroups #endif use constants, only:M_sun implicit none !---------------------------------------------------------...
Fortran
null
3,438
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/init_tracer.f90
subroutine init_tracer use amr_commons use pm_commons use amr_parameters, only: i8b use random use mpi_mod implicit none integer, dimension(1:ncpu,1:IRandNumSize)::allseed integer(i8b),dimension(1:ncpu)::npart_cpu,npart_all integer(i8b)::indglob, npart_tot #ifndef WITHOUTMPI inte...
Fortran
null
26,290
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/unbinding.f90
!----------------------------------------------------------------- ! This file contains the routines for particle unbinding. ! See wiki for more information. ! ! There are three optional preprocessing definitions for particle ! unbinding and merger trees only: ! -DUNBINDINGCOM ! use (and iteratively determine) the ce...
Fortran
null
76,061
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/rho_fine.f90
!############################################################################## !############################################################################## !############################################################################## !############################################################################## ...
Fortran
null
58,137
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/sink_rt_feedback.f90
#ifdef RT !************************************************************************* !************************************************************************* !************************************************************************* !************************************************************************* SUBROUTINE...
Fortran
null
12,390
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/newdt_fine.f90
subroutine newdt_fine(ilevel) use pm_commons use amr_commons use hydro_commons use poisson_commons, ONLY: gravity_type #ifdef RT use rt_parameters, ONLY: rt_advect, rt_nsubcycle #endif #if USE_TURB==1 use turb_commons #endif use constants, ONLY: pi use mpi_mod implicit none #ifndef WITHOUTMPI intege...
Fortran
null
6,329
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/star_formation.f90
#if NDIM==3 subroutine star_formation(ilevel) use amr_commons use pm_commons use hydro_commons use poisson_commons use cooling_module, ONLY: XH=>X use constants, only: Myr2sec, Gyr2sec, mH, pi, rhoc, twopi use random use mpi_mod implicit none #ifndef WITHOUTMPI integer::info,info2,dummy_io integer...
Fortran
null
38,317
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/init_stellar.f90
subroutine init_stellar use amr_commons use pm_commons use sink_feedback_parameters use mpi_mod implicit none #ifndef WITHOUTMPI integer, parameter:: tag=1112 integer:: dummy_io, info2 #endif integer:: ilun logical::eof=.false. character(len=80):: fileloc character(len=5):: n...
Fortran
null
2,749
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/add_list.f90
!################################################################ !################################################################ !################################################################ !################################################################ subroutine add_list(ind_part,ind_grid,ok,np) use amr_c...
Fortran
null
4,529
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/output_part.f90
subroutine backup_part(filename, filename_desc) use amr_commons use pm_commons use dump_utils, only : generic_dump, dump_header_info, dim_keys use iso_fortran_env use mpi_mod implicit none #ifndef WITHOUTMPI integer :: dummy_io, info2 integer, parameter :: tag = 1122 #endif character(len=80) :: filena...
Fortran
null
5,650
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/flag_formation_sites.f90
!################################################################ !################################################################ !################################################################ !################################################################ subroutine flag_formation_sites #if NDIM==3 use amr_co...
Fortran
null
51,541
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/init_sink.f90
subroutine init_sink use amr_commons use pm_commons use clfind_commons use amr_parameters, only:levelmin use constants, only:M_sun use mpi_mod implicit none #ifndef WITHOUTMPI integer,parameter::tag=1112,tag2=1113 integer::dummy_io,info2 #endif real(dp)::scale_nH,scale_T2,scale_l,scale_d,scale_t,sca...
Fortran
null
11,261
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/tracer_utils.f90
! Hooks for RAMSES module tracer_utils use amr_parameters ! nx, ny, nz, dp, ngridmax, nvector, … use amr_commons ! ncoarse, father, xg, son, myid, cpu_map, cpu_map2, ncpu, nbor use pm_commons ! xp, tp, idp, levelp, headp, mp, localseed, numbp, nextp, move_flag use random, only :...
Fortran
null
11,163
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/particle_tree.f90
!################################################################ !################################################################ !################################################################ !################################################################ subroutine init_tree use pm_commons use amr_commons ...
Fortran
null
45,176
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/stellar_particle.f90
subroutine make_stellar_from_sinks use pm_commons use amr_commons use sink_feedback_parameters use mpi_mod implicit none integer:: isink integer:: nbuf integer, parameter:: nbufmax = 1000 integer, dimension(1:nbufmax):: buf_id real(dp):: mass_total integer:: iobj,nobj_new real(dp), dimension(1...
Fortran
null
11,048
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/pm_commons.f90
module pm_commons use amr_parameters use pm_parameters use random implicit none ! Sink particle related arrays real(dp),allocatable,dimension(:) ::msink,xmsink real(dp),allocatable,dimension(:) ::msink_new,msink_all real(dp),allocatable,dimension(:) ::msmbh,msmbh_new,msmbh_all real(dp),all...
Fortran
null
8,735
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/clump_finder.f90
#if NDIM==3 subroutine clump_finder(create_output,keep_alive) use amr_commons use poisson_commons, ONLY:rho use clfind_commons use hydro_commons use mpi_mod implicit none #ifndef WITHOUTMPI integer::info #endif logical::create_output,keep_alive !-------------------------------------------------------...
Fortran
null
65,191
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/output_stellar.f90
subroutine output_stellar_csv(filename) use amr_commons use pm_commons use sink_feedback_parameters implicit none character(LEN=80)::filename,fileloc integer::istellar if(verbose)write(*,*)'Entering output_stellar_csv' fileloc=TRIM(filename) open(unit=123,file=TRIM(fileloc),form='formatted',status='...
Fortran
null
721
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/clump_merger.f90
#if NDIM==3 subroutine compute_clump_properties(xx) use amr_commons use hydro_commons, ONLY:uold use clfind_commons use mpi_mod implicit none #ifndef WITHOUTMPI integer::info #endif real(dp),dimension(1:ncoarse+ngridmax*twotondim)::xx !--------------------------------------------------------------------...
Fortran
null
48,308
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/pm_parameters.f90
module pm_parameters use amr_parameters, ONLY: dp integer::nsinkmax=2000 ! Maximum number of sinks integer::npartmax=0 ! Maximum number of particles integer::npart=0 ! Actual number of particles integer::nsink=0 ! Actual number of sinks integer::ise...
Fortran
null
5,570
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/output_sink.f90
subroutine output_sink_csv(filename) use amr_commons use pm_commons implicit none character(LEN=80)::filename,fileloc integer::isink if(verbose)write(*,*)'Entering output_sink_csv' fileloc=TRIM(filename) open(unit=123,file=TRIM(fileloc),form='formatted',status='replace', recl=500) !================...
Fortran
null
1,340
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/merger_tree.f90
!----------------------------------------------------------------- ! This file contains the routines for the merger trees. ! See wiki for more information. ! ! There are three optional preprocessing definitions for particle ! unbinding and merger trees only: ! -DUNBINDINGCOM ! use (and iteratively determine) the cent...
Fortran
null
132,801
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/clfind_commons.f90
module clfind_commons use amr_commons, ONLY: qdp,dp use sparse_matrix integer::ntest,itest !number of cells above threshold per CPU integer::ivar_clump=1 integer::levelmax_clfind integer::npeaks,npeaks_tot,npeaks_max integer,allocatable,dimension(:)::npeaks_per_cpu in...
Fortran
null
18,282
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/sink_sn_feedback.f90
subroutine make_sn_stellar use pm_commons use amr_commons use hydro_commons use sink_feedback_parameters use constants, only:pi,pc2cm,mH,M_sun use mpi_mod implicit none integer:: ivar, ilevel, ind, ix, iy, iz, ngrid, iskip, idim integer:: i, nx_loc, igrid, ncache integer, dimension(1:nvector), save...
Fortran
null
16,287
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/sink_particle.f90
#if NDIM==3 !############################################################################## !############################################################################## !############################################################################## !###################################################################...
Fortran
null
109,190
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/feedback.f90
!################################################################ !################################################################ !################################################################ !################################################################ #if NDIM==3 subroutine thermal_feedback(ilevel) use pm...
Fortran
null
34,694
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/sparse_mat.f90
!---------------------------------------------------------------------------------------------- ! basic sparse matrix package for the use in the RAMSES clumpfinder ! every line of the matrix is saved as a linked list ! issues/improvements: ! -write a routine for quicker "maxmerging" two lines (outer loop calling "ge...
Fortran
null
5,506
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/synchro_fine.f90
subroutine synchro_fine(ilevel) use pm_commons use amr_commons use mpi_mod implicit none #ifndef WITHOUTMPI integer::info #endif integer::ilevel !-------------------------------------------------------------------- ! This routine synchronizes particle velocity with particle ! position for ilevel parti...
Fortran
null
15,802
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
pm/output_clump.f90
#if NDIM==3 !################################################################ !################################################################ !################################################################ subroutine write_clump_field use amr_commons use clfind_commons use mpi_mod implicit none !--------...
Fortran
null
4,150
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
doc/license.txt
Copyright CEA and Romain Teyssoer romain.teyssier@cea.fr This software is a computer program whose purpose is to perform simulations of self-gravitating fluids with Adaptive Mesh Refinement on massively parallel computers. It is based on the Fortran 90 language and the MPI communication library. This software is g...
Text
null
1,687
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
doc/src/20-gettingstarted.tex
\clearpage \section{Getting started} In this section, we will explain step by step how to get the RAMSES package and install it, then how to perform a simple test to check the installation. \subsection{Obtaining the package} The package can be downloaded from the Bitbucket repository \url{https://bitbucket.org/rteys...
LaTeX
null
9,239
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
doc/src/40-cosmosims.tex
\clearpage \section{Cosmological simulations} In this section, we describe in more detail how RAMSES can be used to perform cosmological simulations. Useful concepts related to parallel computing or post-processing will be introduced, and can also be used for non-cosmological runs. Cosmological simulations are perform...
LaTeX
null
13,945
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
doc/src/60-policy.tex
\clearpage \section{Publication policy} The RAMSES code is freely available for non-commercial use under the CeCILL License agreement. If a paper is published with simulations performed with RAMSES, the authors should cite the following paper, in which the RAMSES code was presented for the first time: % TODO : Better...
LaTeX
null
1,024
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
doc/src/01-titlepage.tex
\begin{titlepage} \flushright \begin{minipage}{0.6\linewidth} \flushright \includegraphics[width=\linewidth]{img/amr.png} \vskip 1cm {\huge \textbf{RAMSES~User's~Guide}} \vskip 2cm \Large Self-gravitating~fluid~dynamics\\ \vskip 5mm with~Adaptive~Mesh~R...
LaTeX
null
689
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
doc/src/00-commands.tex
% Custom commands \newcommand{\fixedfont}[1]{\textbf{\texttt{#1}}} % Unindexed command (shell cmd, etc) \newcommand{\cmd}[1]{\fixedfont{#1}} % Indexed commands \newcommand{\cflag}[1]{\index{makefile options and flags!\fixedfont{#1} option}\fixedfont{#1}} \newcommand{\nmlblock}[1]{\index{namelist blocks!\fixedfont{#1} ...
LaTeX
null
2,325
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
doc/src/50-advancedsims.tex
\clearpage \section{Advanced simulations} For truly innovative scientific applications, the user is usually forced to define complex initial conditions, to impose time varying boundary conditions or to use more than the 5 standard Euler variables (chemical species for example). We briefly describe the easiest way to ...
LaTeX
null
9,353
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
doc/src/30-runtimeparams.tex
\clearpage \section{Runtime Parameters} The RAMSES parameter file is based on the Fortran namelist syntax. The Sod test parameter file is shown below, as it should appear if you edit it. \logfile{\fullnmlfilename} This parameter file is organized in namelist blocks. Each block starts with \cmd{\&BLOCK\_NAME} and end...
LaTeX
null
22,646
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
doc/src/ramses_ug.tex
\documentclass[a4paper,11pt,twoside]{article} %%%% PACKAGES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Generic typesetting \usepackage[english]{babel} \usepackage{makeidx} \usepackage[T1]{fontenc} \usepackage{ae,aecompl} % Graphics \usepackage{graphicx} \usepackage{xcolor} % Tables and arrays \use...
LaTeX
null
1,528
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
doc/src/10-introduction.tex
\clearpage \section{Introduction} The RAMSES package is intended to be a versatile platform to develop applications using Adaptive Mesh Refinement for computational astrophysics. The current implementation allows solving the Euler equations in presence of self-gravity and cooling, treated as additional source terms in...
LaTeX
null
6,154
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
doc/src/scripts/autolog.sh
#!/bin/bash # This script generates the split log files and associated LaTeX commands # It should be called with 3 arguments : # # autolog.sh LOG_FILE NML_FILE OUT_DIR # TEX="autologdefs.tex" # Name of the output LaTeX defs file AWK="awk" # awk command GREP="grep" #...
Shell
null
1,873
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_units.f90
!************************************************************************ subroutine rt_units(scale_Np, scale_Fp) ! Conversion factors from user units into cgs units for RT variables. ! ! scale_np <= photon number density scale [# cm-3] ! scale_pf <= photon flux density scale [# cm-2 s-1] !----------------------...
Fortran
null
812
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/rt_godunov_utils.f90
!########################################################### !########################################################### !########################################################### SUBROUTINE get_rt_courant_coarse(dt) ! Determine the coarse RT timestep length set by the Courant condition !---------------------------...
Fortran
null
2,495
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
rt/coolrates_module.f90
MODULE coolrates_module ! Module for returning cooling and thermochemistry interaction rates. ! The temperature dependence is tabulated in rate (nonlog) versus the ! log of T, because it is expensive to calculate on the fly. ! The rates are interpolated using cubic splines, and extrapolated in ! log-log space...
Fortran
null
31,007