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 | patch/mom2/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 | 52,589 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mom2/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 | 26,974 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mom2/godunov_utils.f90 | !###########################################################
!###########################################################
!###########################################################
!###########################################################
subroutine cmpdt(uu,gg,pp,dx,dt,ncell)
use amr_parameters
use hydro_para... | Fortran | null | 32,945 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mom2/godunov_fine.f90 | !###########################################################
!###########################################################
!###########################################################
!###########################################################
subroutine godunov_fine(ilevel)
use amr_commons
use hydro_commons
impl... | Fortran | null | 33,849 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mom2/feedback.f90 | !################################################################
!################################################################
!################################################################
!################################################################
#if NDIM==3
subroutine thermal_feedback(ilevel)
use pm... | Fortran | null | 39,390 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mom2_mhd/courant_fine.f90 | subroutine courant_fine(ilevel)
use amr_commons
use hydro_commons
use poisson_commons
use mpi_mod
implicit none
#ifndef WITHOUTMPI
integer::info
real(kind=8),dimension(4)::comm_buffin,comm_buffout
#endif
integer::ilevel
!----------------------------------------------------------------------
! Using ... | Fortran | null | 8,290 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mom2_mhd/read_hydro_params.f90 | subroutine read_hydro_params(nml_ok)
use amr_commons
use hydro_commons
use mpi_mod
implicit none
logical::nml_ok
!--------------------------------------------------
! Local variables
!--------------------------------------------------
integer::i,idim,ifixed,nboundary_true=0
integer ,dimension(1:MAXB... | Fortran | null | 17,164 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mom2_mhd/cooling_fine.f90 | subroutine cooling_fine(ilevel)
use amr_commons
use hydro_commons
use cooling_module
#ifdef grackle
use grackle_parameters
#endif
use mpi_mod
implicit none
integer::ilevel
!-------------------------------------------------------------------
! Compute cooling for fine levels
!------------------------... | Fortran | null | 22,708 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mom2_mhd/hydro_parameters.f90 | module hydro_parameters
use amr_parameters
! Number of independant variables
#ifndef NENER
integer,parameter::nener=0
#else
integer,parameter::nener=NENER
#endif
#ifndef NVAR
integer,parameter::nvar=8+nener
#else
integer,parameter::nvar=NVAR
#endif
! Size of hydro kernel
integer,parameter::iu1=-1
in... | Fortran | null | 3,768 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mom2_mhd/umuscl.f90 | ! ---------------------------------------------------------------
! MAG_UNSPLIT Unsplit second order Godunov integrator for
! polytropic magnetized gas dynamics using
! MUSCL-HANCOCK scheme
! with various Riemann solvers and slope limiters.
! The sheme follows closel... | Fortran | null | 117,691 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mom2_mhd/godunov_utils.f90 | !###########################################################
!###########################################################
!###########################################################
!###########################################################
subroutine cmpdt(uu,gg,pp,dx,dt,ncell)
use amr_parameters
use hydro_para... | Fortran | null | 41,855 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mom2_mhd/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 | 26,974 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mom2_mhd/godunov_fine.f90 | !###########################################################
!###########################################################
!###########################################################
!###########################################################
subroutine godunov_fine(ilevel)
use amr_commons
use hydro_commons
impl... | Fortran | null | 57,117 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mom2_mhd/feedback.f90 | !################################################################
!################################################################
!################################################################
!################################################################
#if NDIM==3
subroutine thermal_feedback(ilevel)
use pm... | Fortran | null | 39,366 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/insta/condinit.f90 | !================================================================
!================================================================
!================================================================
!================================================================
subroutine condinit(x,u,dx,nn)
use amr_parameters
us... | Fortran | null | 2,960 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/eos_cc.f90 | !###########################################################
!###########################################################
!###########################################################
!###########################################################
subroutine eos(f,g,q,p,c,kappa_mat,kappa_hat,ncell)
use amr_parameters
... | Fortran | null | 7,431 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/godunov_utils_compdir.f90 | #if (EOS == 0)
include 'eos_sf.f90'
#elif (EOS == 1)
include 'eos_mg.f90'
#elif (EOS == 2)
include 'eos_cc.f90'
#endif
!###########################################################
!###########################################################
!###########################################################
!#########... | Fortran | null | 12,114 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/godunov_fine.f90 | !###########################################################
!###########################################################
!###########################################################
!###########################################################
subroutine godunov_fine(ilevel)
use amr_commons
use hydro_commons
impl... | Fortran | null | 23,793 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/read_hydro_params.f90 | subroutine read_hydro_params(nml_ok)
use amr_commons
use hydro_commons
use mpi_mod
implicit none
logical::nml_ok
!--------------------------------------------------
! Local variables
!--------------------------------------------------
integer::i,idim,imat
integer ,dimension(1:MAXBOUND)::bound_type... | Fortran | null | 8,600 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/courant_fine.f90 | subroutine courant_fine(ilevel)
use amr_commons
use hydro_commons
use poisson_commons
use mpi_mod
implicit none
#ifndef WITHOUTMPI
integer::info
#endif
integer::ilevel
!----------------------------------------------------------------------
! Using the Courant-Friedrich-Levy stability condition, ... | Fortran | null | 4,836 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/init_hydro.f90 | subroutine init_hydro
use amr_commons
use hydro_commons
use mpi_mod
implicit none
#ifndef WITHOUTMPI
integer::info,info2,dummy_io
#endif
integer::ncell,ncache,iskip,igrid,i,ilevel,ind,ivar,idim,imat
integer::nvar2,ilevel2,numbl2,ilun,ibound,istart
integer::ncpu2,ndim2,nlevelmax2,nboundary2
integer ,di... | Fortran | null | 5,608 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/godunov_utils.f90 | !###########################################################
!###########################################################
!###########################################################
!###########################################################
subroutine eos(f,g,q,p,c,kappa_mat,kappa_hat,ncell)
use amr_parameters
u... | Fortran | null | 34,016 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/eos_sg.f90 | !###########################################################
!###########################################################
!###########################################################
!###########################################################
subroutine eos(f,g,q,p,c,kappa_mat,kappa_hat,ncell)
use amr_parameters
... | Fortran | null | 5,093 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/init_flow_fine.f90 | !################################################################
!################################################################
!################################################################
!################################################################
subroutine init_flow
use amr_commons
use hydro_commo... | Fortran | null | 8,115 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/hydro_parameters.f90 | module hydro_parameters
#ifdef grackle
use grackle_parameters
#endif
use amr_parameters
! Number of independant variables
#ifndef NMAT
integer,parameter::nmat=2
#else
integer,parameter::nmat=NMAT
#endif
#ifndef NENER
integer,parameter::nener=0
#else
integer,parameter::nener=NENER
#endif
#ifndef NVAR
i... | Fortran | null | 2,825 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/hydro_flag.f90 | subroutine hydro_flag(ilevel)
use amr_commons
use hydro_commons
implicit none
integer::ilevel
! -------------------------------------------------------------------
! This routine flag for refinement cells that satisfies
! some user-defined physical criteria at the level ilevel.
! ----------------------... | Fortran | null | 4,129 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/condinit.f90 | !================================================================
!================================================================
!================================================================
!================================================================
subroutine condinit(x,u,dx,nn)
use amr_parameters
us... | Fortran | null | 2,448 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/uplmde.f90 | !###########################################################
!###########################################################
!###########################################################
!###########################################################
subroutine tracex(qin,fin,gamma_c,dq,df,qm,qp,fm,fp,dx,dt,ngrid)
use amr_p... | Fortran | null | 32,488 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/interpol_hydro.f90 | !###########################################################
!###########################################################
!###########################################################
!###########################################################
subroutine upload_fine(ilevel)
use amr_commons
use hydro_commons
impli... | Fortran | null | 10,817 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/umuscl.f90 | ! ---------------------------------------------------------------
! UNSPLIT Unsplit second order Godunov integrator for
! real gases (arbitrary EOS) dynamics using
! MUSCL-HANCOCK scheme
! with various slope limiters.
!
! inputs/outputs
! uin => (const) input stat... | Fortran | null | 55,324 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/write_screen.f90 | subroutine write_screen
use amr_commons
use hydro_commons
use pm_commons
use poisson_commons
use mpi_mod
implicit none
#ifndef WITHOUTMPI
integer::info
#endif
integer::igrid,jgrid,ind,icpu
integer::i,icell,ncell,ilevel,ncache
integer::icellmin,imat,lll
real(dp)::dx,scale,smallp,ddd
integer ... | Fortran | null | 5,893 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/output_hydro.f90 | subroutine backup_hydro(filename, filename_desc)
use amr_commons
use hydro_commons
use dump_utils, only : dump_header_info, generic_dump, dim_keys
use mpi_mod
implicit none
#ifndef WITHOUTMPI
integer :: dummy_io, info2
#endif
character(len=80), intent(in) :: filename, filename_desc
integer :: i, ivar,... | Fortran | null | 6,188 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/multimat/eos_mg.f90 | !###########################################################
!###########################################################
!###########################################################
!###########################################################
subroutine eos(f,g,q,p,c,kappa_mat,kappa_hat,ncell)
use amr_parameters
... | Fortran | null | 7,281 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/rt/davis_cDecr/amr_step.f90 | recursive subroutine amr_step(ilevel,icount)
use amr_commons
use pm_commons
use hydro_commons
use poisson_commons
#ifdef RT
use rt_hydro_commons
use SED_module
use rt_cooling_module
#endif
implicit none
#ifndef WITHOUTMPI
include 'mpif.h'
#endif
integer::ilevel,icount
!----------------------------... | Fortran | null | 14,166 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/rt/davis_cDecr/rt_output_hydro.f90 | !RT patch: RT variables are output as they are and not divided by gas
! density. Also there are checks on zero division to avoid
! floating point exceptions.
! Also added call to output_rtInfo.
!************************************************************************
SUBROUTINE rt_backup_hydr... | Fortran | null | 9,024 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/rt/davis_cDecr/readme.txt | Setup of gas levitation experiment described in Davis et al 2014,
run as a test in the Ramses-RT paper (Rosdahl et al 2014).
Special case for the test, where we start with a full
speed of light c and decrease it slowly to rt_c_fraction*c.
| Text | null | 240 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/rt/iliev6_profile/readme.txt | This patch does initial setup of an 1/r**2 density profile with source at the x=y=z=0 corner of the box,
w. constant temperature of 100K throughout the box. This is specifically done to run test 6 in Ilievs
RT comparison project paper.
| Text | null | 238 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/rt/iliev6_profile/condinit.f90 | !================================================================
!================================================================
!================================================================
!================================================================
subroutine condinit(x,u,dx,nn)
use amr_parameters
us... | Fortran | null | 3,153 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/rt/davis/hydro_boundary.f90 | !################################################################
!################################################################
!################################################################
!################################################################
subroutine make_boundary_hydro(ilevel)
use amr_commons... | Fortran | null | 7,902 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/rt/davis/rt_condinit.f90 | !================================================================
!================================================================
!================================================================
!================================================================
subroutine rt_condinit(x,u,dx,nn)
use amr_parameters
... | Fortran | null | 1,874 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/rt/davis/readme.txt | Setup of gas levitation experiment described in Davis et al 2014,
run as a test in the Ramses-RT paper (Rosdahl et al 2014).
| Text | null | 126 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/rt/davis/rt_godunov_fine.f90 | ! Patched for Davis et al test to output vertical photon flux, Fx,
! before it is depleted by cooling_fine, in a passive scalar variable,
! indexed by uold(:,iions+nIons).
!************************************************************************
SUBROUTINE rt_godunov_fine(ilevel, dt)
! This routine is a wrapper to the... | Fortran | null | 18,428 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/rt/davis/rt_hydro_boundary.f90 | !################################################################
!################################################################
!################################################################
!################################################################
subroutine rt_make_boundary_hydro(ilevel)
use amr_comm... | Fortran | null | 10,816 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/rt/davis/condinit.f90 | !================================================================
!================================================================
!================================================================
!================================================================
subroutine condinit(x,u,dx,nn)
use amr_parameters
us... | Fortran | null | 3,449 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/phantom/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 | 6,382 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/phantom/gravana.f90 | !#########################################################
!#########################################################
!#########################################################
!#########################################################
subroutine gravana(x,force,dx,ncell)
use amr_parameters
use poisson_parameters
... | Fortran | null | 4,296 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/phantom/output_poisson.f90 | subroutine backup_poisson(filename)
use amr_commons
use poisson_commons
!~~~~~~~~~ begin ~~~~~~~~~
use mond_parameters
use mond_commons
!~~~~~~~~~~ end ~~~~~~~~~~
implicit none
#ifndef WITHOUTMPI
include 'mpif.h'
#endif
character(LEN=80)::filename
integer::i,ivar,ncache,ind,ilevel,igrid,iskip,ilun,... | Fortran | null | 3,356 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/phantom/init_poisson.f90 | subroutine init_poisson
use pm_commons
use amr_commons
use poisson_commons
!~~~~~~~~~ begin ~~~~~~~~~
use mond_parameters
use mond_commons
!~~~~~~~~~~ end ~~~~~~~~~~
implicit none
#ifndef WITHOUTMPI
include 'mpif.h'
#endif
integer::ncell,ncache,iskip,igrid,i,ilevel,ind,ivar
integer::nvar2,ilevel2,... | Fortran | null | 5,528 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/phantom/read_params.f90 | subroutine read_params
use amr_commons
use mond_parameters
use pm_parameters
use poisson_parameters
use hydro_parameters
implicit none
#ifndef WITHOUTMPI
include 'mpif.h'
#endif
!--------------------------------------------------
! Local variables
!--------------------------------------------------
... | Fortran | null | 9,483 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/phantom/amr_step.f90 | recursive subroutine amr_step(ilevel,icount)
use amr_commons
use pm_commons
use hydro_commons
use poisson_commons
!~~~~~~~~~ begin ~~~~~~~~~
use mond_commons
!~~~~~~~~~~ end ~~~~~~~~~~
#ifdef RT
use rt_hydro_commons
use SED_module
#endif
implicit none
#ifndef WITHOUTMPI
include 'mpif.h'
#endif
i... | Fortran | null | 19,841 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/phantom/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 | 32,564 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/phantom/poisson_commons.f90 | module poisson_commons
use amr_commons
use poisson_parameters
!~~~~~~~~~ begin ~~~~~~~~~
! THIS IS IMPORTANT:
!~~~~~~~~~~~~~~~~~~~~~~~~~
! Replaced "allocatable" property by "pointer"
! These pointer will pointer to either
! (i) phi_newton, etc., or
! (ii) phi_mond, etc.
!
real(dp),pointer,dimen... | Fortran | null | 51,456 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/phantom/adaptive_loop.f90 | subroutine adaptive_loop
use amr_commons
use hydro_commons
use pm_commons
use poisson_commons
use cooling_module
!~~~~~~~~~ begin ~~~~~~~~~
use mond_parameters
use mond_commons
!~~~~~~~~~~ end ~~~~~~~~~~
#ifdef RT
use rt_hydro_commons
#endif
implicit none
#ifndef WITHOUTMPI
include 'mpif.h'
#end... | Fortran | null | 6,486 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/phantom/load_balance.f90 | !#########################################################################
!#########################################################################
!#########################################################################
!#########################################################################
subroutine load_bala... | Fortran | null | 44,062 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/phantom/README.MD | # /patch/phantom
## About
This is the Phantom of RAMSES (POR) QUMOND patch.
For details, see Lueghausen et al. (2014), [arxiv:1405.5963](http://arxiv.org/abs/1405.5963)
Contact:
Fabian Lueghausen <lueghausen@gmail.com>
## Compile
### Makefile
In the RAMSES Makefile, make sure to set
NDIM=3
PATCH=..... | Markdown | null | 2,532 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/yohan/condinit.f90 | !================================================================
!================================================================
!================================================================
!================================================================
subroutine condinit(x,u,dx,nn)
use amr_parameters
us... | Fortran | null | 5,364 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/yohan/rho_ana.f90 | !#########################################################
!#########################################################
!#########################################################
!#########################################################
subroutine rho_ana(x,d,dx,ncell)
use amr_parameters
use hydro_parameters
use p... | Fortran | null | 1,542 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/yohan/units.f90 | subroutine units(scale_l,scale_t,scale_d,scale_v,scale_nH,scale_T2)
use amr_commons
use hydro_commons
use cooling_module
use poisson_commons
real(dp)::scale_nH,scale_T2,scale_t,scale_v,scale_d,scale_l
!-----------------------------------------------------------------------
! Conversion factors from user u... | Fortran | null | 1,289 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/merger/condinit.f90 | !==================================================================================
!=== Hydro ic for Toomre/exponential radial density profile galaxies. ===
!=== Sets up a galactic binary merger. ===
!=== Author : D.Chapon ... | Fortran | null | 20,850 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/merger/init_part.f90 | subroutine init_part
use amr_commons
use merger_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... | Fortran | null | 50,871 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/merger/units.f90 | subroutine units(scale_l,scale_t,scale_d,scale_v,scale_nH,scale_T2)
use amr_commons
use hydro_commons
use cooling_module
real(dp)::scale_nH,scale_T2,scale_t,scale_v,scale_d,scale_l
real(dp)::masse_solaire, kparsec, G_cgs
!-----------------------------------------------------------------------
! Conversion... | Fortran | null | 1,439 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/bondi/courant_fine.f90 | subroutine courant_fine(ilevel)
use amr_commons
use hydro_commons
use poisson_commons
implicit none
include 'mpif.h'
integer::ilevel
!----------------------------------------------------------------------
! Using the Courant-Friedrich-Levy stability condition, !
! this routine computes t... | Fortran | null | 6,142 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/andrea/condinit.f90 | !================================================================
!================================================================
!================================================================
!================================================================
subroutine condinit(x,u,dx,nn)
use amr_parameters
us... | Fortran | null | 3,637 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/andrea/gravana.f90 | !#########################################################
!#########################################################
!#########################################################
!#########################################################
subroutine gravana(x,f,dx,ncell)
use amr_parameters
use poisson_parameters
imp... | Fortran | null | 2,539 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/andrea/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
! Number of dimensions
#ifndef NDIM
integer,par... | Fortran | null | 6,466 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/andrea/units.f90 | subroutine units(scale_l,scale_t,scale_d,scale_v,scale_nH,scale_T2)
use amr_commons
use hydro_commons
use cooling_module
real(dp)::scale_nH,scale_T2,scale_t,scale_v,scale_d,scale_l
!-----------------------------------------------------------------------
! Conversion factors from user units into cgs units
... | Fortran | null | 958 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/andrea/courant_fine.f90 | subroutine courant_fine(ilevel)
use amr_commons
use hydro_commons
use poisson_commons
implicit none
#ifndef WITHOUTMPI
include 'mpif.h'
#endif
integer::ilevel
!----------------------------------------------------------------------
! Using the Courant-Friedrich-Levy stability condition, !
... | Fortran | null | 8,495 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/andrea/read_params.f90 | subroutine read_params
use amr_commons
use pm_parameters
use poisson_parameters
implicit none
#ifndef WITHOUTMPI
include 'mpif.h'
#endif
!--------------------------------------------------
! Local variables
!--------------------------------------------------
integer::i,narg,iargc,ierr,levelmax
chara... | Fortran | null | 5,659 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/andrea/boundana.f90 | !############################################################
!############################################################
!############################################################
!############################################################
subroutine boundana(x,u,dx,ibound,ncell)
use amr_parameters, ONLY: dp,... | Fortran | null | 2,755 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/halo/condinit.f90 | !================================================================
!================================================================
!================================================================
!================================================================
subroutine condinit(x,u,dx,nn)
use amr_parameters
us... | Fortran | null | 5,504 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/halo/rho_ana.f90 | !#########################################################
!#########################################################
!#########################################################
!#########################################################
subroutine rho_ana(x,d,dx,ncell)
use amr_parameters
use hydro_parameters
use p... | Fortran | null | 1,418 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/halo/units.f90 | subroutine units(scale_l,scale_t,scale_d,scale_v,scale_nH,scale_T2)
use amr_commons
use hydro_commons
use cooling_module
use poisson_commons
real(dp)::scale_nH,scale_T2,scale_t,scale_v,scale_d,scale_l
!-----------------------------------------------------------------------
! Conversion factors from user u... | Fortran | null | 1,245 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/halo/boundana.f90 | !############################################################
!############################################################
!############################################################
!############################################################
subroutine boundana(x,u,dx,ibound,nn)
use amr_parameters, ONLY: dp,ndi... | Fortran | null | 5,116 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/planet/condinit.f90 | !================================================================
!================================================================
!================================================================
!================================================================
subroutine condinit(x,u,dx,nn)
use amr_parameters
us... | Fortran | null | 2,916 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/planet/gravana.f90 | !#########################################################
!#########################################################
!#########################################################
!#########################################################
subroutine gravana(x,f,dx,ncell)
use amr_commons
use poisson_parameters
implic... | Fortran | null | 7,657 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/planet/amr_step.f90 | recursive subroutine amr_step(ilevel,icount)
use amr_commons
use pm_commons
use hydro_commons
use poisson_commons
implicit none
integer::ilevel,icount
!-------------------------------------------------------------------!
! This routine is the adaptive-mesh/adaptive-time-step main driver. !
! Each rout... | Fortran | null | 5,206 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/hydro/eos/cooling_fine.f90 | subroutine cooling_fine(ilevel)
use amr_commons
use hydro_commons
use cooling_module
implicit none
#ifndef WITHOUTMPI
include 'mpif.h'
#endif
integer::ilevel
!-------------------------------------------------------------------
! Compute cooling for fine levels
!----------------------------------------... | Fortran | null | 8,211 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/coeur/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,224 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/coeur/condinit.f90 | !================================================================
!================================================================
!================================================================
!================================================================
subroutine condinit(x,u,dx,nn)
use amr_parameters
us... | Fortran | null | 3,701 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mrn-scratch/move_fine.f90 | subroutine move_fine(ilevel)
use amr_commons
use hydro_commons, ONLY: uold,unew,smallr,nvar,gamma
use pm_commons
use mpi_mod
implicit none
integer::ilevel,xtondim
!----------------------------------------------------------------------
! Update particle position and time-centred velocity at level ilevel.... | Fortran | null | 56,066 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mrn-scratch/partmom2cube.f90 | program part2cube
!--------------------------------------------------------------------------
! This software computes projected density cubes.
! Version F90 by R. Teyssier le 01/04/01.
! Update for new tracers by C. Cadiou, M. Trebitsch, H. Choi, O. Snaith and R. Bieri
! Modified from part2cube.f90 by Eric ... | Fortran | null | 17,065 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mrn-scratch/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 | 16,070 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mrn-scratch/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 | 39,016 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mrn-scratch/umuscl.f90 | ! ---------------------------------------------------------------
! MAG_UNSPLIT Unsplit second order Godunov integrator for
! polytropic magnetized gas dynamics using
! MUSCL-HANCOCK scheme
! with various Riemann solvers and slope limiters.
! The sheme follows closel... | Fortran | null | 109,288 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mrn-scratch/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 | 20,642 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mrn-scratch/read_hydro_params.f90 | subroutine read_hydro_params(nml_ok)
use amr_commons
use hydro_commons
use mpi_mod
implicit none
logical::nml_ok
!--------------------------------------------------
! Local variables
!--------------------------------------------------
integer::i,idim,ifixed,nboundary_true=0
integer ,dimension(1:MAXB... | Fortran | null | 17,925 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mrn-scratch/hydro_parameters.f90 | module hydro_parameters
use amr_parameters
! Number of independant variables
#ifndef NENER
integer,parameter::nener=0
#else
integer,parameter::nener=NENER
#endif
#ifndef NVAR
integer,parameter::nvar=8+nener
#else
integer,parameter::nvar=NVAR
#endif
! Size of hydro kernel
integer,parameter::iu1=-1
in... | Fortran | null | 3,768 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mrn-scratch/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,xtondim
!--------------------------------------------------------------------
! This routine synchronizes particle velocity with particle
! position for ilev... | Fortran | null | 55,702 |
[ascl:1011.007] | https://bitbucket.org/rteyssie/ramses | patch/mrn-scratch/tsc_fine.F90 | ! use amr_commons
! use pm_commons
! use poisson_commons
! use hydro_commons, ONLY: uold,unew,smallr,nvar,gamma
! implicit none
! integer::ng,np,ilevel,xtondim
! integer,dimension(1:nvector)::ind_grid
! integer,dimension(1:nvector)::ind_grid_part,ind_part
! !
! !
! !
! logical::error
! integer::i,j,ind,idim,nx_loc,isin... | Fortran | null | 9,000 |
[ascl:2008.021] | https://github.com/mlarichardson/ramses2hsim | README.md | # ramses2hsim
A simulation pipeline for converting cosmological RAMSES simulations into input FITS cubes for the hsim pipeline.
This pipeline is made available without any guarantee of usability.
To compile, update compilers in Makefile, then enter:
>> make all
To run, see example script: runscripts/Example_Script.sh... | Markdown | BSD-3-Clause | 322 |
[ascl:2008.021] | https://github.com/mlarichardson/ramses2hsim | intcube2velcube.f90 | program amr2velcube_UsingInt
implicit none
real, allocatable, dimension(:,:,:,:) :: in_array
real(kind=8), allocatable, dimension(:,:,:) :: out_array,trans_array
character(len=128) :: intCube_file, out_file, ext_file
character(len=1) :: look_sign
integer :: nvar, nx, ny, nz, ix, iy, iz, iv, iiv, delta_iv... | Fortran | BSD-3-Clause | 8,676 |
[ascl:2008.021] | https://github.com/mlarichardson/ramses2hsim | binaryio.py | from struct import unpack
# A library for reading binary files written with fortran.
# Rewind NUM entries
def rewind(f,num):
for nrec in range(num):
f.seek(-4,1)
foot = f.read(4)
f1 = unpack('i',foot)[0]
f.seek(-4,1)
f.seek(-f1,1)
f.seek(-4,1)
head = f.read(4)
h1 = unpack('i',head)[0... | Python | BSD-3-Clause | 4,189 |
[ascl:2008.021] | https://github.com/mlarichardson/ramses2hsim | convert_to_fits.py | from binaryio import *
from astropy.io import fits
import numpy as np
import scipy.integrate as integrate
c = 29979245800.
# Set cosmology
# h100 = Hubble Constant, units of 100 km/s/Mpc
# omega_m = Matter density ratio to critical density at z=0
h100 = 0.704
omega_m = 0.272
# What scale factors are you observing ... | Python | BSD-3-Clause | 3,973 |
[ascl:2008.021] | https://github.com/mlarichardson/ramses2hsim | amr2Intcube.f90 | program amr2map
!-----------------------------------------------------------------------
! Ce programme calcule la carte de densite projetee pour les
! variables hydro d'une simulation RAMSES.
! Version F90 par R. Teyssier le 01/04/01.
!-----------------------------------------------------------------------
... | Fortran | BSD-3-Clause | 47,023 |
[ascl:2008.021] | https://github.com/mlarichardson/ramses2hsim | ramses_info.f90 | MODULE ramses_info
!-----------------------------------------------------------------------
! Module to read and contain the information contained in
! info_xxxxx.txt and info_rt_xxxxx.txt (if it exists).
! J. Rosdahl, Jan 2011, modified from code by R. Teyssier.
!---------------------------------------------... | Fortran | BSD-3-Clause | 55,273 |
[ascl:2008.021] | https://github.com/mlarichardson/ramses2hsim | runscripts/Example_Script.sh | #!/bin/bash
# CODE: ramses2hsim
# AUTHOR: Mark Richardson (Mark.Richardson@McDonaldInstitute.ca)
# DATE: 2020-08-20
# PURPOSE: This pipeline takes a RAMSES (Teyssier 2002) output, extracts a region, and converts it to
# a data cube (arcsec x arcsec x microns) that can be used as an input for HSIM (Zieleniewsk... | Shell | BSD-3-Clause | 3,878 |
[ascl:2105.019] | https://gitlab.com/random-quintessence/random-quintessence | plot_triangle.py | #!/usr/bin/python
"""
Triangle plot for a bunch of models
"""
import numpy as np
import pylab as P
import matplotlib.cm as cm
def combine_samples(root, N):
"""
Load all samples for a given model.
"""
dat = []
for i in range(N):
dat.append( np.load("%s-%d.npy" % (root, N)) )
return np.co... | Python | MIT | 4,590 |
[ascl:2105.019] | https://gitlab.com/random-quintessence/random-quintessence | montecarlo_nompi.py | #!/usr/bin/python
"""
Monte Carlo through a load of random realisations of a model (without MPI).
"""
import numpy as np
from potentials import *
import sys
BASE_SEED = 500
# Get commandline arguments
try:
myid = int(sys.argv[1])
mtype = sys.argv[2]
clambda = True if 't' in str(sys.argv[3]).lower() else F... | Python | MIT | 5,836 |
[ascl:2105.019] | https://gitlab.com/random-quintessence/random-quintessence | examine.py | #!/usr/bin/python
"""
Examine output for one run
"""
import numpy as np
import pylab as P
# Get labels
f = open("data/eft-test-paramnames.txt")
lbls = f.readlines()[0].split(",")
f.close()
# Open paramfile and trim failed models
d = np.load("data/eft-test-params-0.npy").T
bad = d.T[np.where(d[0] == 0.)].T
good = d.T[... | Python | MIT | 569 |
[ascl:2105.019] | https://gitlab.com/random-quintessence/random-quintessence | plot_rainbow.py | #!/usr/bin/python
"""
Plot w0-wa for a bunch of models.
"""
import numpy as np
import pylab as P
import matplotlib.cm as cm
import matplotlib.patches
import matplotlib.ticker
import scipy.ndimage
import sys
sys.path.append("/home/phil/oslo/bao21cm/")
import baofisher
colours = [ ['#6B6B6B', '#BDBDBD'],
['#... | Python | MIT | 3,083 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.