phaseField icon indicating copy to clipboard operation
phaseField copied to clipboard

Reading in initial condition in parallel flags

Open ellery-hendrix opened this issue 8 months ago • 3 comments

If I have 13 variables and I want to load in 11 from an initial condition file, I would denote that in parameters.prm like this:

set Load initial conditions = true,true,true,true,true, true,true,true,true,true, true, false,false

Then, I would indicate whether I want the initial conditions to be read in parallel like this: set Load parallel file = false,false,false,false,false, false,false,false,false,false, false,false,false

with one "false" for each variable, even the ones that aren't being read in from a separate file.

Could be better to have the fields for "Load parallel file" only require true/false for the variables that are being read in.

ellery-hendrix avatar May 08 '25 13:05 ellery-hendrix

Because of how it's done right now, the flag index is associated with the variable index. It could become confusing if we change it to implicitly skip certain variables. In 3.x, the initial conditions flags will be done completely differently to avoid the ordering constraint and make syntax clearer, but there are no plans to patch 2.4.

fractalsbyx avatar May 08 '25 16:05 fractalsbyx

I agree that is is confusing but I think we should still change it a list of size equal to the number of variables to be read, rather than the number of fields because

set File names

and

set Variable names in the files

also take a list of size equal to the number of variables to be read,.

david-montiel-t avatar May 08 '25 16:05 david-montiel-t

For 3.0, see #550

fractalsbyx avatar May 19 '25 20:05 fractalsbyx