piernik-dev / piernik

Piernik MHD Code
GNU General Public License v3.0
15 stars 15 forks source link

Organize CRESP flags and solution map reading from restart. #479

Closed mogrodnik closed 2 years ago

mogrodnik commented 2 years ago

If compiled, CRESP is by default switched on. Switching it off is possible via setting ncre to 0 or declaring use_cresp = .false.; it can additionally be partially switched off via use_cresp_evol = .false. (e.g. module and spectrum initialized and spatially propagated, but not spectrally evolved). If use_cresp = .false. the module should not be initialized and no related action should be taken. This PR disallows use_cresp_evol and reading solution maps (used in the module) from restart file in such case.