Skip to content

Commit

Permalink
resubmit corrupt simulations
Browse files Browse the repository at this point in the history
  • Loading branch information
cpierard committed May 22, 2024
1 parent 94fbfc8 commit 49b38ee
Showing 6 changed files with 177 additions and 236 deletions.
97 changes: 10 additions & 87 deletions notebooks/Anim_Flow_n_Particles.ipynb

Large diffs are not rendered by default.

278 changes: 148 additions & 130 deletions notebooks/test_23334.ipynb

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions simulation/backtrack_from_sampling_locations.py
Original file line number Diff line number Diff line change
@@ -78,14 +78,14 @@
else:
# Number of particles and simulation time
n_points = 8192 #2^13
sim_time = 4484 # 4484
# From 11 October 2006 to and including 20 January 2019 (forward).
# Result: 4485 days or 12 years, 3 months, 10 days including the end date.
sim_time = 4403 # 4484
# From 1 January 2007 to and including 20 January 2019 (forward).
# Result: 4403 days or 12 years and 20 days.
end_time = datetime.strptime('2007-01-01 12:00:00', '%Y-%m-%d %H:%M:%S')

file_range = range(6, 21)
output_path = '/storage/shared/oceanparcels/output_data/' + \
f'data_Claudio/abyssal_nps_outputs/output_23000/hc13_{frag_timescale}_BM_{Brownian_on}_{seed}.zarr'
f'data_Claudio/abyssal_nps_outputs/output_{frag_timescale}/hc13_{frag_timescale}_BM_{Brownian_on}_{seed}.zarr'
chunking_express = 500

print(output_path, Brownian_on)
@@ -190,7 +190,8 @@

# indices = {'lat': range(0, 1700), 'lon': range(200, 4321)}
# indices = {'lat': range(200, 1700), 'lon': range(2300, 4321)} # domain for frag timescale < 400
indices = {'lat': range(200, 1700)} # whole domain for frag timescale >= 400
# indices = {'lat': range(200, 1700)} # whole domain for frag timescale >= 400
indices = {'lat': range(500, 1500), 'lon': range(2300, 4321)}

fieldset = FieldSet.from_nemo(filenames, variables, dimensions,
allow_time_extrapolation=False,
11 changes: 6 additions & 5 deletions simulation/submit-abyssal-backtrack.sh
Original file line number Diff line number Diff line change
@@ -16,14 +16,15 @@ cd ${HOME}/3DModelling_SouthAtlantic/simulation

# first agument is the fragmentation timescale (int) second argument is the boolean for the fragmentation kernel

python3 backtrack_from_sampling_locations.py -ft 23000 -bm 1 -s 43
python3 backtrack_from_sampling_locations.py -ft 23000 -bm 1 -s 13 &
sleep 20
python3 backtrack_from_sampling_locations.py -ft 23000 -bm 1 -s 13
python3 backtrack_from_sampling_locations.py -ft 23000 -bm 1 -s 77 &
sleep 20
python3 backtrack_from_sampling_locations.py -ft 23000 -bm 1 -s 77
sleep 20
python3 backtrack_from_sampling_locations.py -ft 23000 -bm 1 -s 29
python3 backtrack_from_sampling_locations.py -ft 23000 -bm 1 -s 29 &
sleep 20
python3 backtrack_from_sampling_locations.py -ft 23000 -bm 1 -s 61

echo 'Finished computation.'


## _
8 changes: 3 additions & 5 deletions simulation/submit-abyssal-backtrack_copy_1.sh
Original file line number Diff line number Diff line change
@@ -16,13 +16,11 @@ cd ${HOME}/3DModelling_SouthAtlantic/simulation

# first agument is the fragmentation timescale (int) second argument is the boolean for the fragmentation kernel

python3 backtrack_from_sampling_locations.py -ft 10000 -bm 1 -s 13
python3 backtrack_from_sampling_locations.py -ft 10000 -bm 1 -s 77 &
sleep 20
python3 backtrack_from_sampling_locations.py -ft 10000 -bm 1 -s 77
python3 backtrack_from_sampling_locations.py -ft 10000 -bm 1 -s 29 &
sleep 20
python3 backtrack_from_sampling_locations.py -ft 10000 -bm 1 -s 29
sleep 20
python3 backtrack_from_sampling_locations.py -ft 10000 -bm 1 -s 61
python3 backtrack_from_sampling_locations.py -ft 10000 -bm 1 -s 61 &
sleep 20
python3 backtrack_from_sampling_locations.py -ft 10000 -bm 1 -s 33

8 changes: 4 additions & 4 deletions simulation/submit-abyssal-backtrack_copy_2.sh
Original file line number Diff line number Diff line change
@@ -16,13 +16,13 @@ cd ${HOME}/3DModelling_SouthAtlantic/simulation

# first agument is the fragmentation timescale (int) second argument is the boolean for the fragmentation kernel

python3 backtrack_from_sampling_locations.py -ft 1000 -bm 1 -s 14
python3 backtrack_from_sampling_locations.py -ft 1000 -bm 1 -s 14 &
sleep 20
python3 backtrack_from_sampling_locations.py -ft 1000 -bm 1 -s 78
python3 backtrack_from_sampling_locations.py -ft 1000 -bm 1 -s 78 &
sleep 20
python3 backtrack_from_sampling_locations.py -ft 1000 -bm 1 -s 27
python3 backtrack_from_sampling_locations.py -ft 1000 -bm 1 -s 27 &
sleep 20
python3 backtrack_from_sampling_locations.py -ft 1000 -bm 1 -s 62
python3 backtrack_from_sampling_locations.py -ft 1000 -bm 1 -s 62 &
sleep 20
python3 backtrack_from_sampling_locations.py -ft 1000 -bm 1 -s 34

0 comments on commit 49b38ee

Please sign in to comment.