Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #85

Open
wants to merge 287 commits into
base: release
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
287 commits
Select commit Hold shift + click to select a range
f5af309
Fix bug in initial conditions that causes density matrix to have trac…
Apr 4, 2023
26a21c0
some tweaks to plotting scripts to make the compatible with current o…
Apr 4, 2023
d49ff05
clarify condition for outputting files and prevent divide by zero
Apr 5, 2023
9d395fe
added ability to create set of particles - one particle for each spec…
Apr 5, 2023
f34efee
update version of cuda base image, since docker seems unable to find …
Jul 5, 2023
58db302
move install to same line as update or update has no effect
Jul 27, 2023
6a4e282
going back to cuda 11.4, but a version that is actually availabel on …
Jul 27, 2023
940d56a
some more plotting tweaks. Fixed error with dataset name - I don't kn…
Jul 27, 2023
2b1c6a8
reduce scalar output over MPI
Sep 14, 2023
6519ba7
reduce scalar output over MPI (#86)
srichers Sep 14, 2023
2ace779
remove print line
Sep 14, 2023
c06bd06
reduce offdiag mag properly by only taking sqrt after mpi reduction
Sep 19, 2023
7334c8a
Merge branch 'elnConservativePerturbations' into development
Sep 19, 2023
39ed26d
remove print line...again?
Sep 19, 2023
0fc2f43
make perturbations only on the diagonal elements, let vacuum potentia…
Sep 20, 2023
9dc2773
update amrex
Sep 20, 2023
7a2ee96
Revert "make perturbations only on the diagonal elements, let vacuum …
Sep 25, 2023
6e66398
Specify the modules used in Emu in README (#87)
javierigm Oct 19, 2023
0f85532
Readmechanges (#89)
mikaelalatkinson Dec 7, 2023
279ed28
Pressure tensor output (#88)
srichers Dec 7, 2023
56f5a20
Particles store the phase space volume they occupy
Jan 18, 2024
f777df1
set evolution equations for N and L to be zero in code generation scr…
Jan 18, 2024
f042f18
whitespace
Jan 18, 2024
9251ec1
infrastructure to set IMFPs and chemical potentials in the parameter …
Jan 18, 2024
d5a1f63
redefining f --> Nrho (before was f ---> Nrho)
Jan 26, 2024
8b2ef95
do not divide by cell volume, since this is already done in the code …
Feb 1, 2024
ce3e01f
computing volume of phase space
Feb 2, 2024
f1adb1b
deleting lines that convert twice mu to erg
Feb 2, 2024
d0a0641
adding delta E as an input parameter to compute phase space volume
Feb 2, 2024
3baca49
adding new input parameters to input files to run collitions
Feb 2, 2024
764e827
adding collition term in QKE
Feb 2, 2024
3f9ef87
moving line that compute derivates, now it set the phase volume to ze…
Feb 2, 2024
f093668
considering the particle that carry antineutrinos in the fast flavor …
Feb 2, 2024
275f5a0
Fixing an error in the collision term
Feb 14, 2024
2614233
including adaptative time step for absortion and emission
Feb 28, 2024
8f7b928
creating vacuum paticles initial condition script
Mar 7, 2024
fd6964a
adding attenuation parameter to the time derivative of N_Ab due to th…
Mar 7, 2024
00f8307
solving mistake to compute time step due to collisions
Mar 8, 2024
19916f7
adding collision test input file
Mar 8, 2024
8105f03
testing if the particles converge to the expected equilibrium distrib…
Mar 8, 2024
2507f0f
solving issue to copy GNUmakefile_jenkins to Exec directory
Mar 8, 2024
0c1708d
doing fast compilation in collision test
Mar 15, 2024
95fdc84
clarifying better the collision time steps, now delta t collision is …
Mar 15, 2024
1b8a938
deletting renomarlization function. It will not be used anymore
Mar 15, 2024
a6d3255
solving mistake in compilation comand to compile the code for 3 flavors
Mar 15, 2024
5b12e39
Setting default collision time step to infinite. It will change if th…
Mar 16, 2024
b24f1f5
setting right indentation
Mar 17, 2024
f8338bd
including attenuation parameter to compute the time steps due to pote…
Mar 17, 2024
1d925c3
computing minimum between time steps due to potentials and collision …
Mar 17, 2024
618e685
solve mistake in chemical potential units in coment
Mar 17, 2024
a804c0a
add coment on the energy units
Mar 17, 2024
be9a318
delete the individual parms arguments
Mar 17, 2024
c8474a6
creating collisional flavor instability test
Mar 24, 2024
5c8dc11
delete print line
Mar 27, 2024
6c875ea
now reads plt* files for time steps of more than 5 digits
Mar 27, 2024
ee5aa8f
now reads plt files for time steps with more than 5 digits
Mar 27, 2024
7638a4e
print useful info for bipolar test
Apr 17, 2024
636b211
make a better babysitting plot
Apr 17, 2024
f36f90f
improve babysitting plots
Apr 17, 2024
c6365fe
improve babysitting script to also plot the ELN
Apr 19, 2024
bc0dcdf
upgraded cassowary to a V100 GPU
Apr 30, 2024
3737ee6
installed P100 GPU in jenkins server. Corrected cuda version on casso…
Apr 30, 2024
c33801b
add function to initialize the background enviroment Ye, rho and T
May 1, 2024
9d92683
K plot (#91)
javierigm May 6, 2024
9c067cf
insert chemical potential for neutrinos and antineutrino independently
May 22, 2024
bdb9405
set python script that generate initial condition for collisional ins…
May 22, 2024
5c8c375
set input file for collisional instability test
May 22, 2024
4e7cc86
Create a Jenkins test for collisional flavor instability
May 22, 2024
4da4492
change cuda version to 7.0
May 22, 2024
417b0f3
delete std cout line
May 22, 2024
d1b2967
correct cuda version for jenkins
May 22, 2024
6de21e6
change order of commands first reduce_data_fft.py then reduce_data.py
May 22, 2024
eda852c
delete function to initialize background quantities on this branch
May 22, 2024
302ecc5
Merge branch 'collisions' of https://github.com/AMReX-Astro/Emu into …
May 22, 2024
5d036cd
Solve mistake on collisional instability test. Now it read the right …
May 22, 2024
ea321e5
Solve mistake on collisional instability test. Now it read the right …
May 22, 2024
400815b
add python script for collision instability test
May 22, 2024
820c715
solve problem of defining chemical potentials for antineutrinos in th…
May 23, 2024
38f885f
Kmax t hdf5 (#93)
srichers May 24, 2024
ca0d492
Merge remote-tracking branch 'origin/development' into collisions
May 29, 2024
5537029
rename f -> N for particles
May 29, 2024
12ffb90
finish renaming f -> N everywhere
May 29, 2024
4dede98
comment lines that assert if N and Nbar are negatives, this lines wil…
Jun 3, 2024
ff4fa17
change f for N in utility script to generate initial particles condit…
Jun 4, 2024
d21b1cf
modify initial condition script for msw test. now it gives N_ab inste…
Jun 4, 2024
8895d64
add comments to the function that read the initial conditions of the …
Jun 4, 2024
2f4a4cc
change msw test to include the change f_ab ---> N_ab
Jun 4, 2024
a77c608
reading N_ab for the particle initial condition file instead of N and…
Jun 4, 2024
50c6f8d
removing f_ab variables for N_ab when setting perturbation
Jun 4, 2024
d8a29b9
delete no needed lines
Jun 4, 2024
581e207
repare coll_equi_test.py test to consider N_ab instead of f_ab
Jun 4, 2024
2a89051
making bypolar test work with the changes f_ab ---> N_ab
Jun 4, 2024
e4e4c4f
making fast flavor test work for f_ab ---> N_ab
Jun 4, 2024
44409f0
making fast_flavor_k_test works for f_ab ---> N_ab
Jun 4, 2024
61c1649
delete print line
Jun 4, 2024
843dfde
delete print lines
Jun 4, 2024
c1988dc
make attenuation parameter symbolic in code generation scripts
Jun 4, 2024
e039516
move f-->N in a few more places
Jun 4, 2024
28af3b5
change f to N in test scripts
Jun 4, 2024
7f90f42
change Trf to TrN
Jun 4, 2024
4022724
remove unused line
Jun 4, 2024
8859292
Add file to read EoS table
shankar-1729 Jun 6, 2024
11b6e4c
Finish reading EoS table onto memory
shankar-1729 Jun 6, 2024
eb31a55
Add infrastructure to get the interolated quantities of Tabulated EoS
shankar-1729 Jun 6, 2024
14ef26f
Finish interpolation routine for munu/entropy
shankar-1729 Jun 6, 2024
a019f8e
Disable AMREX_USE_HDF5
shankar-1729 Jun 7, 2024
d6c797a
give Jenkins access to the tables stored on the workstation
Jun 11, 2024
7da9496
Evolve.cpp: write comments
shankar-1729 Jun 17, 2024
432f894
Merge branch 'swapnil/eos_table' of github.com:AMReX-Astro/Emu into s…
shankar-1729 Jun 17, 2024
0428f1d
Fix initial huge memory allocation issue (#96)
shankar-1729 Jun 17, 2024
c3d0057
Merge branch 'development' of github.com:AMReX-Astro/Emu into swapnil…
shankar-1729 Jun 17, 2024
6d5f016
Implement support for NuLib HDF5 tables
shankar-1729 Jun 19, 2024
fd61790
Determine energy bin automatically from given neutrino energy
shankar-1729 Jun 19, 2024
1947ec1
add mue,muhat interpolation function + general cleanup
shankar-1729 Jun 19, 2024
4b57f8b
Read EoS and NuLib table names from parfile
shankar-1729 Jun 19, 2024
cf78f14
Finish application of EoS/NuLib tables in evolve.cpp
shankar-1729 Jun 19, 2024
8937f11
Add support routine set_rho_T_Ye that reads values from HDF5 table GP…
shankar-1729 Jun 24, 2024
482da20
Update Jenkinsfile
shankar-1729 Jun 25, 2024
f5bc8b0
Read table names only when IMFP_method is 2
shankar-1729 Jun 25, 2024
96dff14
Add new makefile GNUmakefile_jenkins_HDF5_CUDA and update Jenkinsfile
shankar-1729 Jun 25, 2024
f5cfa00
Improve k plot (#95)
javierigm Jul 2, 2024
3961f88
script to check for an ELN crossing in a particle input file (#92)
srichers Jul 2, 2024
4b660a3
add option to perturb diagonals instead of off-diagonals (#94)
srichers Jul 2, 2024
9276ece
Implement function to continuously add particles at outer boundary
shankar-1729 Jul 27, 2024
c043dd5
Make the function to add particles at boundary templated
shankar-1729 Jul 27, 2024
8f842f1
Reimplement particle creation at outer boundary
shankar-1729 Jul 31, 2024
44339c5
Collisions (#90)
erickurquilla1999 Aug 22, 2024
e8eb777
Revert "Collisions (#90)" (#97)
srichers Aug 22, 2024
94846e2
Collisions (again) (#98)
srichers Aug 23, 2024
ec7e4ce
Pull changes from development branch to eos_table branch, with merge …
shankar-1729 Aug 23, 2024
f694f71
Resolving conflict between development and Swapnil's EOS branch.
Aug 26, 2024
cb7512c
Clean up the code and add comments
erickurquilla1999 Aug 27, 2024
dd85884
Filling the chemical potential matrix to be used in the QKE calculati…
erickurquilla1999 Aug 27, 2024
8741901
Do not create particles at outer boundary when periodic BC is used
shankar-1729 Sep 11, 2024
b683cc1
Use NUM_FLAVORS = 2 instead of 3 in makefiles/GNUmakefile_jenkins_HDF…
shankar-1729 Sep 11, 2024
6c967a8
Remove ../Scripts/babysitting/avgfee_HDF5.py test from Jenkinsfile
shankar-1729 Sep 12, 2024
9f77126
use GNUmakefile_jenkins_HDF5_CUDA in Jenkinsfile Collisions flavor in…
shankar-1729 Sep 12, 2024
9cccd62
Use actual pup* and dt for Vphase calculation
shankar-1729 Sep 16, 2024
6db027b
Fix particle creation at boundary and calculate total Vphase
shankar-1729 Sep 24, 2024
0aa2559
Set correct BC_type (should be moved to parameter file)
shankar-1729 Sep 26, 2024
cdab6c5
Merge pull request #99 from AMReX-Astro/swapnil/eos_table
erickurquilla1999 Sep 27, 2024
08af2bd
Swapnil/cleanup development (#102)
shankar-1729 Oct 2, 2024
d6f2f5a
Create a file that contains the function which will read background q…
Sep 13, 2024
89622c0
Call the function that reads the HDF5 file containing rho, Ye, and T …
Sep 13, 2024
a2623d1
Solving missing semicolon
erickurquilla1999 Sep 13, 2024
d4e185f
Update the Make.package file to compile the file that contains the fu…
erickurquilla1999 Sep 13, 2024
060734b
Send input parameters to the function that sets rho, Y, and T to the …
Sep 13, 2024
cda1a45
Reading the input number of cells and domain size from the background…
Sep 19, 2024
968d1eb
Resolve the issue when using the pointer that contains the number of …
erickurquilla1999 Sep 19, 2024
40abf6b
Setting rho, Ye, and T in the AMReX mesh MultiFab.
erickurquilla1999 Sep 20, 2024
6658b82
Assigning the correct values of densities, temperature, and electron …
erickurquilla1999 Sep 20, 2024
53b986f
Stop the code if the number of cells and domain size in the HDF5 back…
erickurquilla1999 Sep 20, 2024
4a97dae
Creating a new parameter to control when the code reads the backgroun…
Sep 23, 2024
df87a06
Adding the new parameter to control when the code reads the backgroun…
Sep 23, 2024
205d92c
Create a Python script to generate vacuum particles with different en…
Sep 23, 2024
0cebd63
Now create empty particles at the energy bin center of the Nulib table.
Sep 23, 2024
5b31222
Deleting unnecessary printing files.
erickurquilla1999 Sep 23, 2024
cf915b6
Solve issue with data type when reading doubles from an HDF5 file
erickurquilla1999 Sep 23, 2024
97495ee
Create an initial condition input parameter for the Fermi-Dirac test.
erickurquilla1999 Sep 23, 2024
9352d16
Compute the delta phase space in the input file of the particles.
Sep 23, 2024
7a3992d
Remove unneeded semicolon.
erickurquilla1999 Sep 24, 2024
1ed493b
Redefining the phase space volume calculation based on precomputed qu…
Sep 26, 2024
d18c46a
Generate comments in Doxygen style for a function that reads the init…
erickurquilla1999 Sep 24, 2024
0a7dfc3
Using np.zeros when generating the initial condition for multi-energy…
Sep 24, 2024
d7516aa
Resolve issue with the colon.
Sep 24, 2024
60b9762
Cleaning the Python script that generates vacuum multi-energy particles.
Sep 24, 2024
2704add
Modify the Python script that generates the initial conditions for th…
erickurquilla1999 Sep 24, 2024
11a35b1
Simplifying the calculation of the phase space volume.
erickurquilla1999 Sep 24, 2024
53d4460
Solve issue with initial condition not reproducing the right neutrino…
Sep 24, 2024
6c7a717
Update the initial condition script for monoenergetic vacuum particle…
Sep 24, 2024
436bad6
Convert the units of the background data from MeV to ergs when settin…
erickurquilla1999 Sep 25, 2024
e248f00
Add comments and convert the temperature from ergs to MeV when interp…
erickurquilla1999 Sep 25, 2024
52fd68b
Create a Python script for the Fermi-Dirac test.
erickurquilla1999 Sep 25, 2024
f0582b0
Update the input parameters for the Fermi-Dirac test.
erickurquilla1999 Sep 25, 2024
5a752fe
Create a python script to generate a constant background matter field…
Sep 25, 2024
3e42aeb
Update the input parameters for the Fermi-Dirac test.
erickurquilla1999 Sep 25, 2024
5f3f3c2
Read the background matter HDF5 file path from the input parameters.
Sep 26, 2024
60d5858
Add a script to write all particle information into HDF5 files.
erickurquilla1999 Sep 26, 2024
87b6903
Add Fermi-Dirac test to Jenkinsfile.
Sep 26, 2024
fb99e19
Updating the path in Ganon where the EOS and NuLib tables will be loc…
Sep 26, 2024
69b6bcc
Solving the issue with the Fermi-Dirac test path to the EOS and NuLib…
Sep 26, 2024
aade9d1
Trying to fix Jenkins problem when reading tables
Sep 26, 2024
91e5a54
Do just 2 test in Jenskins
Sep 26, 2024
12bdf0d
Trying to fix Jenkins problem when reading tables
Sep 26, 2024
49e4e90
Trying to fix Jenkins problem when reading tables
Sep 26, 2024
16ff43a
Trying to fix Jenkins problem when reading tables
Sep 26, 2024
305f55f
Trying to fix Jenkins problem when reading tables
Sep 26, 2024
5711c93
Adding all tests to Jenkins.
Sep 26, 2024
e075f84
Solving the issue of plots using LaTeX text settings that do not run …
Sep 26, 2024
bda55b1
Creating an input for the boundary condition type.
Sep 26, 2024
7998bdf
use proper variable name
Sep 27, 2024
7620b01
Include an exception for Jupyter Notebook files in the ".gitignore" f…
erickurquilla1999 Oct 1, 2024
6816282
Include a GNUmakefile for Perlmutter compilation.
erickurquilla1999 Oct 1, 2024
44a2322
Making the ReadHDF5RhoYeT.cpp file compile without MPI and cleaning u…
Oct 8, 2024
5c63391
Update default makefile to include HDF5 files in the compilation
Oct 8, 2024
6cfd38b
Delete comment
Oct 8, 2024
5d0a636
Merge pull request #103 from AMReX-Astro/upload_rho_ye_T_tested
shankar-1729 Oct 9, 2024
87c8861
Setting rho, Ye, and T in the AMReX mesh MultiFab.
Oct 14, 2024
46c9ef5
Assigning the correct values of densities, temperature, and electron …
erickurquilla1999 Sep 20, 2024
66359c9
Organizing and structuring the parameter file to avoid reading variab…
Oct 1, 2024
00f2a18
Update Fermi-Dirac test parameter file
Oct 1, 2024
64b35b2
Add an if statement to avoid evolving particles that are inside the b…
Oct 1, 2024
964ed4d
Solve syntax issue.
erickurquilla1999 Oct 1, 2024
8f7f7bc
Writing derivatives of N and Nbar in symbolic Hermitian format.
Oct 1, 2024
1043aae
"Creating a function to set particles to N=0 and Nbar=0 in the bounda…
Oct 1, 2024
876adfc
Creating a flag for boundary conditions that set particles to N=0 and…
Oct 1, 2024
165d2a8
Add function to set particles to N=0 and Nbar=0 in the boundary cells…
Oct 1, 2024
9075f00
Add the code in main to do periodic boundary conditions but initializ…
Oct 1, 2024
e69d99c
Solving bracket issue.
erickurquilla1999 Oct 1, 2024
88264b5
Adding return when particles are in boundary cells
erickurquilla1999 Oct 1, 2024
291b037
Resolve the issue in the plots in the Fermi-Dirac test script.
Oct 2, 2024
d578339
Resolve rebase conflict
Oct 14, 2024
d0737dd
Including the declaration of the number of cells in the x direction i…
Oct 14, 2024
fea8609
Delete repeted lines
Oct 14, 2024
bd01302
cleaning up the code
Oct 14, 2024
1ff374b
Add indentation in if statement in parameter file
Oct 15, 2024
6e7e9af
Delete repeated comment
Oct 15, 2024
767cfe5
Allowing IMFP method = 1 do periodic boundary initialization
Oct 15, 2024
b02a642
Allow periodic vacuum initialization of boundary condition without do…
Oct 15, 2024
61aae67
Adding flag to compute do_periodic_empty_bc = 0 to avoid error
Oct 15, 2024
5af2620
Solve error in if statement that avoids computation of quantities for…
Oct 15, 2024
364ef99
Add boundary condition test for periodic empty functions
Oct 15, 2024
af90ac7
Create initial condition for empty boundary condition test
Oct 15, 2024
516f6b3
Add periodic empty boundary conditions to Jenkins
Oct 16, 2024
f3c7489
Cleaning up and writing comments
Oct 16, 2024
716a4fa
Cleaning up and adding comments to BC empty particle test
Oct 16, 2024
6e68243
Delete if statement to check if IMFP method is one or two and just ch…
Oct 16, 2024
fcfce5e
Solving possible issue with time step
Oct 16, 2024
1aa89c5
Solving issue with time step problem
Oct 16, 2024
71ddce9
Add comments and clean up particles_at_boundary_cells function
Oct 16, 2024
cfc1545
Change name of function particles_at_boundary_cells to empty_particle…
Oct 16, 2024
ada8a29
Add if statement to check if IMFP method is equal to 2 before the if …
Oct 16, 2024
e9219e4
Solve issue in periodic empty boundary condition test
Oct 18, 2024
032d1d1
Move black hole parameter out of the IMFP method 2 so we can run simu…
Oct 18, 2024
2bc2769
Adding do_nsm parameter to all input files
Oct 18, 2024
ea5221e
Remove if statement so the empty periodic boundary condition can be r…
Oct 18, 2024
fa0572f
Adding comments
Oct 18, 2024
d713ae3
Making the parameter to do empty periodic BC independent of the IMFP …
Oct 18, 2024
287c47c
Remove unnecessary line
Oct 18, 2024
94187c2
Make the code able to simulate a black hole independently of the IMFP…
Oct 18, 2024
4b0410a
Change variable name from do_nsm to do_blackhole.
Oct 18, 2024
0b686c3
Update comments
Oct 18, 2024
af8cb9c
Update empty periodic BC test to include a black hole in the domain c…
Oct 18, 2024
7c7896c
Cleaning up up and adding returns to speed up
Oct 18, 2024
88b53f8
Reorganize the parameter file
Oct 18, 2024
c42dd1d
Clean and comment the code
Oct 18, 2024
91267ca
Update and organize input paramter files
Oct 18, 2024
f1ee95d
Delete debbug print line
Oct 18, 2024
b09c5ba
Use sqrt and amrex::Math::powi<2>(x) functions to speed up the calcul…
Oct 21, 2024
27a8242
Merge pull request #104 from AMReX-Astro/periodic_boundary_initializa…
shankar-1729 Oct 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
*.out
*.app

# Jupiter files
*.ipynb_checkpoints

# Other
Scripts/symbolic_hermitians/*.pyc
Scripts/symbolic_hermitians/__pycache__
Expand All @@ -39,4 +42,5 @@ Scripts/symbolic_hermitians/__pycache__
.pydevproject
.settings
.vscode
Source/generated_files
Source/generated_files
*~
7 changes: 5 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "amrex"]
path = amrex
url = https://github.com/dwillcox/amrex.git
path = submodules/amrex
url = https://github.com/AMReX-Codes/amrex.git
[submodule "submodules/HighFive"]
path = submodules/HighFive
url = https://github.com/BlueBrain/HighFive.git
4 changes: 0 additions & 4 deletions .gitpod.dockerfile

This file was deleted.

98 changes: 0 additions & 98 deletions .gitpod.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

13 changes: 13 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# 1.4

* Restructured initial conditions to have python scripts generate particle distributions instead of doing so inside the C++ code. This improves the code's flexibility.

* Add option to output data in HDF5 format. Post-processing scripts only work with the original binary format, since yt only reads the binary format.

* Add realtime output of scalar quantities to make basic analysis many times faster than with the post-processing scripts.

* Include all of the basic post-processing scripts with Emu itself to avoid keeping multiple incompatible copies of them.

# 1.3

* Incorporated various feature additions used for _Code Comparison for Fast Flavor Instability Simulations_ (https://doi.org/10.1103/PhysRevD.106.043011)

# 1.2

Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM nvidia/cuda:11.4.3-devel-ubuntu20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y python3 python3-pip gfortran build-essential libhdf5-openmpi-dev openmpi-bin pkg-config libopenmpi-dev openmpi-bin libblas-dev liblapack-dev libpnetcdf-dev git python-is-python3 gnuplot
RUN pip3 install numpy matplotlib h5py scipy sympy yt
ENV USER=jenkins
ENV LOGNAME=jenkins
Empty file added Emu_Fixes.md
Empty file.
3 changes: 3 additions & 0 deletions Exec/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ plt*
tmp_build_dir
Backtrace.*
*.png
*.dat
*.h5
*.pdf
32 changes: 0 additions & 32 deletions Exec/GNUmakefile

This file was deleted.

154 changes: 154 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
pipeline {
triggers { pollSCM('') } // Run tests whenever a new commit is detected.
agent { dockerfile {args '--gpus all -v /mnt/scratch/EOS:/EOS:ro -v /mnt/scratch/NuLib:/NuLib:ro'}} // Use the Dockerfile defined in the root Flash-X directory
environment {
// Get rid of Read -1, expected <someNumber>, errno =1 error
// See https://github.com/open-mpi/ompi/issues/4948
OMPI_MCA_btl_vader_single_copy_mechanism = 'none'
}
stages {

//=============================//
// Set up submodules and amrex //
//=============================//
stage('Prerequisites'){ steps{
sh 'mpicc -v'
sh 'nvidia-smi'
sh 'nvcc -V'
sh 'git submodule update --init'
sh 'cp makefiles/GNUmakefile_jenkins_HDF5_CUDA Exec/GNUmakefile'
dir('Exec'){
sh 'make generate; make -j'
}
}
}

stage('MSW'){ steps{
dir('Exec'){
sh 'python ../Scripts/initial_conditions/st0_msw_test.py'
sh 'mpirun -np 4 ./main3d.gnu.TPROF.MPI.CUDA.ex ../sample_inputs/inputs_msw_test'
sh 'python ../Scripts/tests/msw_test.py'
sh 'rm -rf plt*'
}
}
}

stage('Bipolar'){ steps{
dir('Exec'){
sh 'python ../Scripts/initial_conditions/st1_bipolar_test.py'
sh 'mpirun -np 4 ./main3d.gnu.TPROF.MPI.CUDA.ex ../sample_inputs/inputs_bipolar_test'
sh 'rm -rf plt*'
}
}
}

stage('Fast Flavor'){ steps{
dir('Exec'){
sh 'python ../Scripts/initial_conditions/st2_2beam_fast_flavor.py'
sh 'mpirun -np 4 ./main3d.gnu.TPROF.MPI.CUDA.ex ../sample_inputs/inputs_fast_flavor'
sh 'python ../Scripts/tests/fast_flavor_test.py'
sh 'rm -rf plt*'
}
}
}

stage('Fast Flavor k'){ steps{
dir('Exec'){
sh 'python ../Scripts/initial_conditions/st3_2beam_fast_flavor_nonzerok.py'
sh 'mpirun -np 4 ./main3d.gnu.TPROF.MPI.CUDA.ex ../sample_inputs/inputs_fast_flavor_nonzerok'
sh 'python ../Scripts/tests/fast_flavor_k_test.py'
sh 'rm -rf plt*'
}
}
}

stage('Fiducial 2F GPU Binary'){ steps{
dir('Exec'){
sh 'python ../Scripts/initial_conditions/st4_linear_moment_ffi.py'
sh 'mpirun -np 4 ./main3d.gnu.TPROF.MPI.CUDA.ex ../sample_inputs/inputs_1d_fiducial'
sh 'python ../Scripts/data_reduction/reduce_data_fft.py'
sh 'python ../Scripts/data_reduction/reduce_data.py'
sh 'python ../Scripts/data_reduction/combine_files.py plt _reduced_data.h5'
sh 'python ../Scripts/data_reduction/combine_files.py plt _reduced_data_fft_power.h5'
sh 'python ../Scripts/babysitting/avgfee.py'
sh 'python ../Scripts/babysitting/power_spectrum.py'
sh 'python ../Scripts/data_reduction/convertToHDF5.py'
sh 'gnuplot ../Scripts/babysitting/avgfee_gnuplot.plt'
archiveArtifacts artifacts: '*.pdf'
sh 'rm -rf plt*'
}
}
}

stage('Fiducial 3F CPU HDF5'){ steps{
dir('Exec'){
sh 'cp ../makefiles/GNUmakefile_jenkins_HDF5 GNUmakefile'
sh 'make realclean; make generate; make -j'
sh 'python ../Scripts/initial_conditions/st4_linear_moment_ffi_3F.py'
sh 'mpirun -np 4 ./main3d.gnu.TPROF.MPI.ex ../sample_inputs/inputs_1d_fiducial'
/*sh 'python3 ../Scripts/babysitting/avgfee_HDF5.py'*/
sh 'rm -rf plt*'
}
}
}

stage('Collisions flavor instability'){ steps{
dir('Exec'){
sh 'cp ../makefiles/GNUmakefile_jenkins_HDF5_CUDA GNUmakefile'
sh 'make realclean; make generate NUM_FLAVORS=2; make -j NUM_FLAVORS=2'
sh 'python ../Scripts/initial_conditions/st8_coll_inst_test.py'
sh 'mpirun -np 4 ./main3d.gnu.TPROF.MPI.CUDA.ex ../sample_inputs/inputs_collisional_instability_test'
sh 'python ../Scripts/data_reduction/reduce_data.py'
sh 'python ../Scripts/tests/coll_inst_test.py'
sh 'rm -rf plt* *pdf'
}
}
}
stage('BC periodic empty'){ steps{
dir('Exec'){
sh 'mpirun -np 4 ./main3d.gnu.TPROF.MPI.CUDA.ex ../sample_inputs/inputs_bc_periodic_init'
sh 'python ../Scripts/collisions/writeparticleinfohdf5.py'
sh 'python ../Scripts/tests/bc_empty_init_test.py'
sh 'rm -rf plt* *pdf'
}
}
}
stage('Collisions to equilibrium'){ steps{
dir('Exec'){
sh 'cp ../makefiles/GNUmakefile_jenkins_HDF5_CUDA GNUmakefile'
sh 'make realclean; make generate NUM_FLAVORS=3; make -j NUM_FLAVORS=3'
sh 'python ../Scripts/initial_conditions/st7_empty_particles.py'
sh 'mpirun -np 4 ./main3d.gnu.TPROF.MPI.CUDA.ex ../sample_inputs/inputs_coll_equi_test'
sh 'python ../Scripts/tests/coll_equi_test.py'
sh 'rm -rf plt* *pdf'
}
}
}

stage('Fermi-Dirac test'){ steps{
dir('Exec'){
sh 'python ../Scripts/initial_conditions/st9_empty_particles_multi_energy.py'
sh 'python ../Scripts/collisions/nsm_constant_background_rho_Ye_T__writer.py'
sh 'mpirun -np 4 ./main3d.gnu.TPROF.MPI.CUDA.ex ../sample_inputs/inputs_fermi_dirac_test'
sh 'python ../Scripts/collisions/writeparticleinfohdf5.py'
sh 'python ../Scripts/tests/fermi_dirac_test.py'
sh 'rm -rf plt* *pdf rho_Ye_T.hdf5'
}
}
}

} // stages{

post {
always {
cleanWs(
cleanWhenNotBuilt: true,
deleteDirs: true,
disableDeferredWipeout: false,
notFailBuild: true,
patterns: [[pattern: 'submodules', type: 'EXCLUDE']]
) // allow submodules to be cached
}
}

} // pipeline{
Loading