Rerun subset of periodic surging experiments that did not make it 9ka #17
Draft
andrewdnolan wants to merge 2 commits into
Draft
Rerun subset of periodic surging experiments that did not make it 9ka #17andrewdnolan wants to merge 2 commits into
andrewdnolan wants to merge 2 commits into
Conversation
053c839 to
910e0a2
Compare
Owner
Author
Identifying incomplete runsAssuming you have a import numpy as np
import xarray as xr
zarr_path = 'data/PeriodicSurges_Timeseries_9ka.zarr'
src = xr.open_dataset(zarr_path, engine='zarr')
nt = src.dims["t"]
betas = []
periods = []
for SP in src.SP:
for beta in src.beta:
da = src.sel(SP=SP, beta=beta).percent_temperate
# number of nans
nn = np.count_nonzero(da.isnull())
# final valid timestep
idx, = np.where(da.isnull())
t_f = da.t.isel(t=idx[0]-1)
if (nn > 1) & (t_f < 8e3):
betas.append(float(beta))
periods.append(float(SP))
np.savetxt("incomplete_runs.dat", np.array([periods, betas]).T)The |
Also updated readme with chunked simulations renaming instructions
Owner
Author
|
After the first 3ka chunk eight simulations failed, due to a divergent velocity, and need to removed from the suite of simulations to rerun. In order to identify the simulations that complete run: touch run/crmpt12/crmpt12.commands.p2
for i in $(seq 34); do
if tail "logs/crmpt12/crmpt12_46759282_${i}.out" | grep -q "ELMER SOLVER FINISHED AT:"; then
sed -n "${i}p" ./run/crmpt12/crmpt12.commands >> run/crmpt12/crmpt12.commands.p2
fi
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
About a third of the periodic surging experiment did not make it the end of the 9ka simulation. The purpose of this PR is to rerun those simulations that failed, with a bit more attention and babysitting this time around.