Closed ken-lauer closed 3 weeks ago
Rebased on master
That doesn't work, I think it needs to come after Time
. Although Time
isn't required, I'm not sure particles work without it.
importbeam
docs say:
The modules controls the import of a Genesis 1.3 particle file to replace the internal generation of the particle distribution (note that the module beam should not be called). The routine defines also the parameter for a time-dependent run if the time-namelist hasn’t been defined yet.
importfield
docs say:
The modules controls the import of a Genesis 1.3 field file to replace the internal generation of the field distribution (note that the module field should only be called afterwards with the accumulate-option enabled). The routine defines also the parameter for a time-dependent run if the time-namelist hasn’t been defined yet.
If this attempt is good, should I switch up the initial field handler as well?
If this attempt is good, should I switch up the initial field handler as well? Sure
Changes
This PR adjusts
initial_particles
andinitial_field
handling:Beam
instances when inserting particlesImportDistribution
instances when inserting anImportBeam
instanceImportBeam
instances when inserting anImportDistribution
instanceinitial_field
fallback to insert aftersetup
(off-by-one error)