% This simulation will take about 1 hour on an 8-core 9th generation Intel i7 laptop CPU. Ensure the computer has at least 16 GB of RAM.
% Pick a directory to put the simulation output into:

outdir = '~/simulations/gdi2/';

% First we must ensure MatGemini is on the Matlab path:

cwd = which('gemini3d');
addpath(fullfile(cwd, '..'))

% This simulation uses a custom perturb.m file, so we must add that directory to Matlab path:

in_dir = fullfile(cwd, "Examples/init/gdi_periodic_lowres/");
addpath(in_dir)

% Now the simulation can be run:

gemini3d.run(outdir, in_dir, "overwrite", false)