Note
Go to the end to download the full example code.
Testing reload of old dump#
CI test for reload of old dump
8 import os
9
10 import shamrock
11
12 os.environ["SHAMDUMP_OFFSET_MODE_OLD"] = "1"
13
14
15 ctx = shamrock.Context()
16 ctx.pdata_layout_new()
17
18 model = shamrock.get_Model_SPH(context=ctx, vector_type="f64_3", sph_kernel="M4")
19
20 model.load_from_dump("reference-files/old_sham_dump/santa_barbara_100K_0000.sham")
Estimated memory usage: 0 MB