Skip to content

Commit

Permalink
Merge branch 'hyschive:main' into autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunYen-Chen authored Feb 4, 2025
2 parents b324df0 + b9d3fd3 commit deb46fa
Show file tree
Hide file tree
Showing 118 changed files with 689 additions and 350 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ For variables with `Default/Min/Max` labeled as `Depend`, click the parameter na
| [[ OPT__OUTPUT_LORENTZ \| Runtime-Parameters:-Outputs#OPT__OUTPUT_LORENTZ ]] | 0 | None | None | output Lorentz factor [0] ##SRHD ONLY## |
| [[ OPT__OUTPUT_MACH \| Runtime-Parameters:-Outputs#OPT__OUTPUT_MACH ]] | 0 | None | None | output mach number [0] ##HYDRO ONLY## |
| [[ OPT__OUTPUT_MODE \| Runtime-Parameters:-Outputs#OPT__OUTPUT_MODE ]] | -1 | 1 | 3 | (1=const step, 2=const dt, 3=dump table) -> edit "Input__DumpTable" for 3 |
| [[ OPT__OUTPUT_PART \| Runtime-Parameters:-Outputs#OPT__OUTPUT_PART ]] | 0 | 0 | 7 | output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag) [0] |
| [[ OPT__OUTPUT_PART \| Runtime-Parameters:-Outputs#OPT__OUTPUT_PART ]] | 0 | 0 | 8 | output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag, 8=entire box) [0] |
| [[ OPT__OUTPUT_PAR_DENS \| Runtime-Parameters:-Outputs#OPT__OUTPUT_PAR_DENS ]] | PAR_OUTPUT_DENS_PAR_ONLY | 0 | 2 | output the particle or total mass density on grids: (0=off, 1=particle mass density, 2=total mass density) [1] ##OPT__OUTPUT_TOTAL ONLY## |
| [[ OPT__OUTPUT_PAR_MESH \| Runtime-Parameters:-Outputs#OPT__OUTPUT_PAR_MESH ]] | Depend | Depend | Depend | output the attributes of tracer particles mapped from mesh quantities -> edit "Input__Par_Mesh" [1] ##PARTICLE ONLY## |
| [[ OPT__OUTPUT_PAR_MODE \| Runtime-Parameters:-Outputs#OPT__OUTPUT_PAR_MODE ]] | 0 | 0 | 2 | output the particle data: (0=off, 1=text-file, 2=C-binary) [0] ##PARTICLE ONLY## |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ data dump frequency.
the HDF5 snapshots of GAMER.

<a name="OPT__OUTPUT_PART"></a>
* #### `OPT__OUTPUT_PART` &ensp; (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diagonal) &ensp; [0]
* #### `OPT__OUTPUT_PART` &ensp; (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diagonal, 8=entire box) &ensp; [0]
* **Description:**
Output the data of a single line or slice in the text format.
Output the data of a single line, slice, or entire box in the text format.
Use [OUTPUT_PART_X](#OUTPUT_PART_X), [OUTPUT_PART_Y](#OUTPUT_PART_Y), and
[OUTPUT_PART_Z](#OUTPUT_PART_Z) to specify the target coordinates.
This output option is mainly for quick inspection for simple test problems
Expand Down
2 changes: 1 addition & 1 deletion example/script/clean.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rm -f Record__Note Record__Timing Record__TimeStep Record__PatchCount Record__Dump Record__MemInfo Record__L1Err \
Record__Conservation Data* stderr stdout log XYslice* YZslice* XZslice* Xline* Yline* Zline* \
Diag* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
Diag* Box* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
PowerSpec_* Particle_* nohup.out Record__Performance Record__TimingMPI_* \
Record__ParticleCount Record__User Patch_* Record__NCorrUnphy FailedPatchGroup* *.pyc Record__LoadBalance Record__Center \
GRACKLE_INFO Record__DivB Record__Hybrid
2 changes: 1 addition & 1 deletion example/test_problem/ELBDM/DiskHeating/Input__Parameter
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ SPEC_INT_GHOST_BOUNDARY 4 # ghost boundary size for spectral int

# data dump
OPT__OUTPUT_TOTAL 1 # output the simulation snapshot: (0=off, 1=HDF5, 2=C-binary) [1]
OPT__OUTPUT_PART 0 # output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag) [0]
OPT__OUTPUT_PART 0 # output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag, 8=entire box) [0]
OPT__OUTPUT_TEXT_FORMAT_FLT %24.16e # string format of floating-point variables in output text files [%24.16e]
OPT__OUTPUT_USER 0 # output the user-specified data -> edit "Output_User.cpp" [0]
OPT__OUTPUT_PAR_MODE 0 # output the particle data: (0=off, 1=text-file, 2=C-binary) [0] ##PARTICLE ONLY##
Expand Down
2 changes: 1 addition & 1 deletion example/test_problem/ELBDM/DiskHeating/clean.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rm -f Record__Note Record__Timing Record__TimeStep Record__PatchCount Record__Dump Record__MemInfo Record__L1Err \
Record__Conservation Data* stderr stdout log XYslice* YZslice* XZslice* Xline* Yline* Zline* \
Diag* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
Diag* Box* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
PowerSpec_* Particle_* nohup.out Record__Performance Record__TimingMPI_* \
Record__ParticleCount Record__User Patch_* Record__NCorrUnphy FailedPatchGroup* *.pyc Record__LoadBalance Record__Center \
GRACKLE_INFO Record__DivB Record__Hybrid
20 changes: 14 additions & 6 deletions example/test_problem/ELBDM/DiskHeating/download_ic.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
filename=disk-heating-ic
#!/bin/bash

curl https://girder.hub.yt/api/v1/item/6645cffcff473673ea91b24d/download -o ${filename}.tgz
tar -zxvf ${filename}.tgz
rm ${filename}.tgz
ln -s ${filename}/UM_IC_0.4_M7 UM_IC
ln -s ${filename}/PAR_IC_0.4_M7_low_res DiskHeatingParticleIC
LOCAL_FILENAME="disk-heating-ic"
FILE_ID="677dd2d0999605c485c8de8f"
FILE_SHA256="5c981ffe1f0cd85237b51e9e2872e8047dad8a87e0419575255e4c1d5d8cf17a"

# 1 download
curl https://hub.yt/api/v1/item/${FILE_ID}/download -o "${LOCAL_FILENAME}.tgz"

# 2. compare sha256sum
! [ `sha256sum ${LOCAL_FILENAME}.tgz | awk '{print $1}'` = "${FILE_SHA256}" ] && echo "File broken: ${LOCAL_FILENAME}.tgz"

# 3. unzip and link
tar -zxvf ${LOCAL_FILENAME}.tgz
rm ${LOCAL_FILENAME}.tgz
ln -s ${LOCAL_FILENAME}/UM_IC_0.4_M7 UM_IC
ln -s ${LOCAL_FILENAME}/PAR_IC_0.4_M7_low_res DiskHeatingParticleIC
2 changes: 1 addition & 1 deletion example/test_problem/ELBDM/ExtPot/Input__Parameter
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ SPEC_INT_TABLE_PATH ./ # path to tables for spectral interpol

# data dump
OPT__OUTPUT_TOTAL 1 # output the simulation snapshot: (0=off, 1=HDF5, 2=C-binary) [1]
OPT__OUTPUT_PART 7 # output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag) [0]
OPT__OUTPUT_PART 7 # output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag, 8=entire box) [0]
OPT__OUTPUT_USER 0 # output the user-specified data -> edit "Output_User.cpp" [0]
OPT__OUTPUT_BASE 0 # only output the base-level data [0] ##OPT__OUTPUT_PART ONLY##
OPT__OUTPUT_POT 1 # output gravitational potential [1] ##OPT__OUTPUT_TOTAL ONLY##
Expand Down
2 changes: 1 addition & 1 deletion example/test_problem/ELBDM/ExtPot/clean.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rm -f Record__Note Record__Timing Record__TimeStep Record__PatchCount Record__Dump Record__MemInfo Record__L1Err \
Record__Conservation Data* stderr stdout log XYslice* YZslice* XZslice* Xline* Yline* Zline* \
Diag* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
Diag* Box* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
PowerSpec_* Particle_* nohup.out Record__Performance Record__TimingMPI_* \
Record__ParticleCount Record__User Patch_* Record__NCorrUnphy FailedPatchGroup* *.pyc Record__LoadBalance Record__Hybrid

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ SPEC_INT_TABLE_PATH ./ # path to tables for spectral interpol

# data dump
OPT__OUTPUT_TOTAL 0 # output the simulation snapshot: (0=off, 1=HDF5, 2=C-binary) [1]
OPT__OUTPUT_PART 0 # output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag) [0]
OPT__OUTPUT_PART 0 # output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag, 8=entire box) [0]
OPT__OUTPUT_USER 1 # output the user-specified data -> edit "Output_User.cpp" [0]
OPT__OUTPUT_PAR_MODE 0 # output the particle data: (0=off, 1=text-file, 2=C-binary) [0] ##PARTICLE ONLY##
OPT__OUTPUT_BASEPS 0 # output the base-level power spectrum [0]
Expand Down
2 changes: 1 addition & 1 deletion example/test_problem/ELBDM/GaussianWavePacket/clean.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rm -f Record__Note Record__Timing Record__TimeStep Record__PatchCount Record__Dump Record__MemInfo Record__L1Err \
Record__Conservation Data* stderr stdout log XYslice* YZslice* XZslice* Xline* Yline* Zline* \
Diag* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
Diag* Box* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
PowerSpec_* Particle_* nohup.out Record__Performance Record__TimingMPI_* \
Record__ParticleCount Record__User Patch_* Record__NCorrUnphy FailedPatchGroup* *.pyc Record__LoadBalance Record__Hybrid

Expand Down
2 changes: 1 addition & 1 deletion example/test_problem/ELBDM/HaloMerger/Input__Parameter
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ SPEC_INT_TABLE_PATH ./ # path to tables for spectral interpol

# data dump
OPT__OUTPUT_TOTAL 1 # output the simulation snapshot: (0=off, 1=HDF5, 2=C-binary) [1]
OPT__OUTPUT_PART 4 # output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag) [0]
OPT__OUTPUT_PART 4 # output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag, 8=entire box) [0]
OPT__OUTPUT_USER 0 # output the user-specified data -> edit "Output_User.cpp" [0]
OPT__OUTPUT_PAR_MODE 1 # output the particle data: (0=off, 1=text-file, 2=C-binary) [0] ##PARTICLE ONLY##
OPT__OUTPUT_BASEPS 0 # output the base-level power spectrum [0]
Expand Down
2 changes: 1 addition & 1 deletion example/test_problem/ELBDM/HaloMerger/clean.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
rm -f Record__Note Record__Timing Record__TimeStep Record__PatchCount Record__Dump Record__MemInfo Record__L1Err \
Record__Conservation Data* stderr stdout log XYslice* YZslice* XZslice* Xline* Yline* Zline* \
Diag* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
Diag* Box* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
PowerSpec_* Particle_* nohup.out Record__Performance Record__TimingMPI_* \
Record__ParticleCount Record__User Patch_* Record__NCorrUnphy FailedPatchGroup* *.pyc Record__LoadBalance
17 changes: 12 additions & 5 deletions example/test_problem/ELBDM/HaloMerger/download_ic.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
filename=HALO_IC_m22_1_Mh_4e9
link=https://girder.hub.yt/api/v1/item/65e5251f1613cd89a1dfe902/download
#!/bin/bash

LOCAL_FILENAME="HALO_IC_m22_1_Mh_4e9"
FILE_ID="677cc8db999605c485c8de83"
FILE_SHA256="acbd85842de65ff2360c7f3a1d1101c6f4f8939f430c3f61b8bc5f6f9a72fe94"

curl ${link} -o ${filename}
# 1. download
curl https://hub.yt/api/v1/item/${FILE_ID}/download -o "${LOCAL_FILENAME}"

ln -s ${filename} HALO_IC_Halo1
ln -s ${filename} HALO_IC_Halo2
# 2. compare sha256sum
! [ `sha256sum ${LOCAL_FILENAME} | awk '{print $1}'` = "${FILE_SHA256}" ] && echo "File broken: ${LOCAL_FILENAME}"

# 3. link
ln -s ${LOCAL_FILENAME} HALO_IC_Halo1
ln -s ${LOCAL_FILENAME} HALO_IC_Halo2
2 changes: 1 addition & 1 deletion example/test_problem/ELBDM/IsolatedHalo/Input__Parameter
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ SPEC_INT_TABLE_PATH ./ # path to tables for spectral interpol

# data dump
OPT__OUTPUT_TOTAL 1 # output the simulation snapshot: (0=off, 1=HDF5, 2=C-binary) [1]
OPT__OUTPUT_PART 0 # output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag) [0]
OPT__OUTPUT_PART 0 # output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag, 8=entire box) [0]
OPT__OUTPUT_USER 0 # output the user-specified data -> edit "Output_User.cpp" [0]
OPT__OUTPUT_PAR_MODE 0 # output the particle data: (0=off, 1=text-file, 2=C-binary) [0] ##PARTICLE ONLY##
OPT__OUTPUT_BASEPS 0 # output the base-level power spectrum [0]
Expand Down
2 changes: 1 addition & 1 deletion example/test_problem/ELBDM/IsolatedHalo/clean.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
rm -f Record__Note Record__Timing Record__TimeStep Record__PatchCount Record__Dump Record__MemInfo Record__L1Err \
Record__Conservation Data* stderr stdout log XYslice* YZslice* XZslice* Xline* Yline* Zline* \
Diag* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
Diag* Box* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
PowerSpec_* Particle_* nohup.out Record__Performance Record__TimingMPI_* \
Record__ParticleCount Record__User Patch_* Record__NCorrUnphy FailedPatchGroup* *.pyc Record__LoadBalance Record__Hybrid
20 changes: 14 additions & 6 deletions example/test_problem/ELBDM/IsolatedHalo/download_ic.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
filename=UM_IC_run05-halo08-lv4
link=https://use.yt/upload/d75aa595
#!/bin/bash

curl -L ${link} -o ${filename}.tgz
tar -zxvf ${filename}.tgz
rm ${filename}.tgz
LOCAL_FILENAME="UM_IC_run05-halo08-lv4"
FILE_ID="677cbad6999605c485c8de77"
FILE_SHA256="7ed91ba48a9aec139e0574629b689090ae43496fb957c6822c7ec1bd1217e22e"

ln -s ${filename} UM_IC
# 1. download
curl https://hub.yt/api/v1/item/${FILE_ID}/download -o "${LOCAL_FILENAME}.tgz"

# 2. compare sha256sum
! [ `sha256sum ${LOCAL_FILENAME}.tgz | awk '{print $1}'` = "${FILE_SHA256}" ] && echo "File broken: ${LOCAL_FILENAME}.tgz"

# 3. unzip and link
tar -zxvf ${LOCAL_FILENAME}.tgz
rm ${LOCAL_FILENAME}.tgz
ln -s ${LOCAL_FILENAME} UM_IC
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ SPEC_INT_TABLE_PATH ./ # path to tables for spectral interpol

# data dump
OPT__OUTPUT_TOTAL 1 # output the simulation snapshot: (0=off, 1=HDF5, 2=C-binary) [1]
OPT__OUTPUT_PART 0 # output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag) [0]
OPT__OUTPUT_PART 0 # output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag, 8=entire box) [0]
OPT__OUTPUT_USER 1 # output the user-specified data -> edit "Output_User.cpp" [0]
OPT__OUTPUT_BASEPS 0 # output the base-level power spectrum [0]
OPT__OUTPUT_BASE 0 # only output the base-level data [0] ##OPT__OUTPUT_PART ONLY##
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rm -f Record__Note Record__Timing Record__TimeStep Record__PatchCount Record__Dump Record__MemInfo Record__L1Err \
Record__Conservation Data* stderr stdout log XYslice* YZslice* XZslice* Xline* Yline* Zline* \
Diag* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
Diag* Box* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
PowerSpec_* Particle_* nohup.out Record__Performance Record__TimingMPI_* \
Record__ParticleCount Record__User Patch_* Record__NCorrUnphy FailedPatchGroup* *.pyc Record__LoadBalance Record__Hybrid

Expand Down
2 changes: 1 addition & 1 deletion example/test_problem/ELBDM/LSS/Input__Parameter
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ SPEC_INT_TABLE_PATH ./ # path to tables for spectral interpol

# data dump
OPT__OUTPUT_TOTAL 1 # output the simulation snapshot: (0=off, 1=HDF5, 2=C-binary) [1]
OPT__OUTPUT_PART 0 # output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag) [0]
OPT__OUTPUT_PART 0 # output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag, 8=entire box) [0]
OPT__OUTPUT_USER 0 # output the user-specified data -> edit "Output_User.cpp" [0]
OPT__OUTPUT_PAR_MODE 0 # output the particle data: (0=off, 1=text-file, 2=C-binary) [0] ##PARTICLE ONLY##
OPT__OUTPUT_BASEPS 1 # output the base-level power spectrum [0]
Expand Down
2 changes: 1 addition & 1 deletion example/test_problem/ELBDM/LSS/clean.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
rm -f Record__Note Record__Timing Record__TimeStep Record__PatchCount Record__Dump Record__MemInfo Record__L1Err \
Record__Conservation Data* stderr stdout log XYslice* YZslice* XZslice* Xline* Yline* Zline* \
Diag* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
Diag* Box* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
PowerSpec_* Particle_* nohup.out Record__Performance Record__TimingMPI_* \
Record__ParticleCount Record__User Patch_* Record__NCorrUnphy FailedPatchGroup* *.pyc Record__LoadBalance Record__Hybrid
17 changes: 13 additions & 4 deletions example/test_problem/ELBDM/LSS/download_ic.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
filename=Music_InitCondition_z3200_L1.4_N0256_s1002
link=https://use.yt/upload/4dec54c9
#!/bin/bash

curl -L ${link} -o ${filename}
ln -s ${filename} UM_IC
LOCAL_FILENAME="Music_InitCondition_z3200_L1.4_N0256_s1002"
FILE_ID="6780d8d6999605c485c8dea0"
FILE_SHA256="114fd2a0d37e70ba7bd06907c878bd1c752ea76882ad1833af165696eef8cf9d"

# 1. download
curl https://hub.yt/api/v1/item/${FILE_ID}/download -o "${LOCAL_FILENAME}"

# 2. compare sha256sum
! [ `sha256sum ${LOCAL_FILENAME} | awk '{print $1}'` = "${FILE_SHA256}" ] && echo "File broken: ${LOCAL_FILENAME}"

# 3. link
ln -s ${LOCAL_FILENAME} UM_IC
2 changes: 1 addition & 1 deletion example/test_problem/ELBDM/LSS_Hybrid/Input__Parameter
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ SPEC_INT_GHOST_BOUNDARY 4 # ghost boundary size for spectral int

# data dump
OPT__OUTPUT_TOTAL 1 # output the simulation snapshot: (0=off, 1=HDF5, 2=C-binary) [1]
OPT__OUTPUT_PART 0 # output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag) [0]
OPT__OUTPUT_PART 0 # output a single line or slice: (0=off, 1=xy, 2=yz, 3=xz, 4=x, 5=y, 6=z, 7=diag, 8=entire box) [0]
OPT__OUTPUT_USER 0 # output the user-specified data -> edit "Output_User.cpp" [0]
OPT__OUTPUT_PAR_MODE 0 # output the particle data: (0=off, 1=text-file, 2=C-binary) [0] ##PARTICLE ONLY##
OPT__OUTPUT_BASEPS 1 # output the base-level power spectrum [0]
Expand Down
2 changes: 1 addition & 1 deletion example/test_problem/ELBDM/LSS_Hybrid/clean.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
rm -f Record__Note Record__Timing Record__TimeStep Record__PatchCount Record__Dump Record__MemInfo Record__L1Err \
Record__Conservation Data* stderr stdout log XYslice* YZslice* XZslice* Xline* Yline* Zline* \
Diag* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
Diag* Box* BaseXYslice* BaseYZslice* BaseXZslice* BaseXline* BaseYline* BaseZline* BaseDiag* \
PowerSpec_* Particle_* nohup.out Record__Performance Record__TimingMPI_* \
Record__ParticleCount Record__User Patch_* Record__NCorrUnphy FailedPatchGroup* *.pyc Record__LoadBalance Record__Hybrid
17 changes: 13 additions & 4 deletions example/test_problem/ELBDM/LSS_Hybrid/download_heavy_halo_ic.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
filename=Music_InitCondition_z99_L2.8_N0256_HeavyHalo
link=https://use.yt/upload/4587e2e6
#!/bin/bash

curl -L ${link} -o ${filename}
ln -sf ${filename} UM_IC_wave_heavy
LOCAL_FILENAME="Music_InitCondition_z100_L2.8_N0256_HeavyHalo"
FILE_ID="6780d9d2999605c485c8dea9"
FILE_SHA256="2f15920763e6189abd81b6f39fd283ebeeb6b6b90dbbce0eb898d098ef4b497d"

# 1. download
curl https://hub.yt/api/v1/item/${FILE_ID}/download -o "${LOCAL_FILENAME}"

# 2. compare sha256sum
! [ `sha256sum ${LOCAL_FILENAME} | awk '{print $1}'` = "${FILE_SHA256}" ] && echo "File broken: ${LOCAL_FILENAME}"

# 3. link
ln -sf ${LOCAL_FILENAME} UM_IC_wave_heavy
python3 elbdm_wave_to_hybrid_IC.py -input UM_IC_wave_heavy -output UM_IC_hybrid_heavy -resolution 256
ln -sf UM_IC_hybrid_heavy UM_IC
21 changes: 16 additions & 5 deletions example/test_problem/ELBDM/LSS_Hybrid/download_light_halo_ic.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
filename=Music_InitCondition_z99_L2.8_N0064_LightHalo
link=https://use.yt/upload/a67d8dd1
#!/bin/bash

LOCAL_FILENAME="Music_InitCondition_z100_L2.8_N0064_LightHalo"
FILE_ID="6780d97e999605c485c8dea6"
FILE_SHA256="89e1626405e38e3bd756167e3c06719f193456aa8e7d210ddfd13246df0e1a91"

# 1. clean
rm UM_IC*
curl -L ${link} -o ${filename}
python3 elbdm_rescale_periodic_IC.py -input ${filename} -output Music_InitCondition_z99_L2.8_N0256_LightHalo -n_in 64 -n_out 256
ln -sf Music_InitCondition_z99_L2.8_N0256_LightHalo UM_IC_wave_light

# 2. download
curl https://hub.yt/api/v1/item/${FILE_ID}/download -o "${LOCAL_FILENAME}"

# 3. compare sha256sum
! [ `sha256sum ${LOCAL_FILENAME} | awk '{print $1}'` = "${FILE_SHA256}" ] && echo "File broken: ${LOCAL_FILENAME}"

# 4. link
python3 elbdm_rescale_periodic_IC.py -input ${LOCAL_FILENAME} -output Music_InitCondition_z100_L2.8_N0256_LightHalo -n_in 64 -n_out 256
ln -sf Music_InitCondition_z100_L2.8_N0256_LightHalo UM_IC_wave_light
python3 elbdm_wave_to_hybrid_IC.py -input UM_IC_wave_light -output UM_IC_hybrid_light -resolution 256
ln -sf UM_IC_hybrid_light UM_IC
Loading

0 comments on commit deb46fa

Please sign in to comment.