Skip to content

Commit 531c9bc

Browse files
committed
Refactor code, move julia code to extern and minor bug fixes
1 parent 7659878 commit 531c9bc

20 files changed

Lines changed: 136 additions & 81 deletions

.github/workflows/codespell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ jobs:
3939

4040
- name: Run codespell
4141
run: |
42-
codespell -I .github/workflows/codespell_ignore.txt, --ignore-words=.github/workflows/codespell_ignore.txt --skip="src/problems/RadStreamingPhotoionization/photoionization-julia/Manifest.toml" src
42+
codespell -I .github/workflows/codespell_ignore.txt, --ignore-words=.github/workflows/codespell_ignore.txt src

extern/Microphysics

src/problems/RadStreamingPhotoionization/photoionization-julia/Manifest.toml renamed to extern/photoionization-julia/Manifest.toml

File renamed without changes.

src/problems/RadStreamingPhotoionization/photoionization-julia/Project.toml renamed to extern/photoionization-julia/Project.toml

File renamed without changes.

src/problems/RadStreamingPhotoionization/photoionization-julia/fraction.jl renamed to extern/photoionization-julia/fraction.jl

File renamed without changes.

src/problems/RadStreamingPhotoionization/photoionization-julia/no_energy.csv renamed to extern/photoionization-julia/no_energy.csv

File renamed without changes.

src/problems/RadStreamingPhotoionization/photoionization-julia/with_energy.csv renamed to extern/photoionization-julia/with_energy.csv

File renamed without changes.

inputs/PhotoionizationTests/StreamingNoEnergyChange.toml renamed to inputs/OneZonePhotoionizationNoEnergy.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# *****************************************************************
22
# Problem size and geometry
33
# *****************************************************************
4-
geometry.prob_lo = 0.0 0.0 0.0
5-
geometry.prob_hi = 100000000000.0 100000000000.0 100000000000.0
6-
geometry.is_periodic = 1 1 1
4+
geometry.prob_lo = [0.0, 0.0, 0.0]
5+
geometry.prob_hi = [100000000000.0, 100000000000.0, 100000000000.0]
6+
quokka.bc = ["periodic", "periodic", "periodic"]
77

88
# *****************************************************************
99
# VERBOSITY
@@ -13,7 +13,7 @@ amr.v = 0 # verbosity in Amr
1313
# *****************************************************************
1414
# Resolution and refinement
1515
# *****************************************************************
16-
amr.n_cell = 8 8 8
16+
amr.n_cell = [8, 8, 8]
1717
amr.max_level = 0 # number of levels = max_level + 1
1818
max_timesteps = 500000
1919
do_reflux = 0

inputs/PhotoionizationTests/StreamingPhotoheatingRecCooling.toml renamed to inputs/OneZonePhotoionizationWithEnergy.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# *****************************************************************
22
# Problem size and geometry
33
# *****************************************************************
4-
geometry.prob_lo = 0.0 0.0 0.0
5-
geometry.prob_hi = 100000000000.0 100000000000.0 100000000000.0
6-
geometry.is_periodic = 1 1 1
4+
geometry.prob_lo = [0.0, 0.0, 0.0]
5+
geometry.prob_hi = [100000000000.0, 100000000000.0, 100000000000.0]
6+
quokka.bc = ["periodic", "periodic", "periodic"]
77

88
# *****************************************************************
99
# VERBOSITY
@@ -13,7 +13,7 @@ amr.v = 0 # verbosity in Amr
1313
# *****************************************************************
1414
# Resolution and refinement
1515
# *****************************************************************
16-
amr.n_cell = 8 8 8
16+
amr.n_cell = [8, 8, 8]
1717
amr.max_level = 0 # number of levels = max_level + 1
1818
max_timesteps = 500000
1919
do_reflux = 0

inputs/PhotoionizationTests/StromgrenNoRecombination.toml renamed to inputs/StromgrenNoRecombination.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# *****************************************************************
22
# Problem size and geometry
33
# *****************************************************************
4-
geometry.prob_lo = 0.0 0.0 0.0
5-
geometry.prob_hi = 5e13 5e13 5e13
6-
quokka.bc = reflecting reflecting reflecting
4+
geometry.prob_lo = [0.0, 0.0, 0.0]
5+
geometry.prob_hi = [5e13, 5e13, 5e13]
6+
quokka.bc = ["reflecting", "reflecting", "reflecting"]
77

88
# *****************************************************************
99
# VERBOSITY
@@ -13,7 +13,7 @@ amr.v = 0 # verbosity in Amr
1313
# *****************************************************************
1414
# Resolution and refinement
1515
# *****************************************************************
16-
amr.n_cell = 16 16 16
16+
amr.n_cell = [16, 16, 16]
1717
amr.max_level = 0 # number of levels = max_level + 1
1818
#max_timesteps = 10
1919
do_reflux = 0
@@ -45,7 +45,7 @@ integrator.rtol_rad_flux = 1e-14
4545
integrator.rtol_enuc = 1e-14
4646

4747
plotfile_interval = 1
48-
plotfile_prefix = StrmNoRec
48+
plotfile_prefix = "StrmNoRec"
4949

5050
network.recombination_switch = 0
5151
network.energy_switch = 0

0 commit comments

Comments
 (0)