Set the module level config type Will abort if the module has already been initialised to avoid inconsistencies.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(nonlinear_terms_config_type), | intent(in), | optional | :: | nonlinear_terms_config_in |
subroutine set_nonlinear_terms_config(nonlinear_terms_config_in)
use mp, only: mp_abort
type(nonlinear_terms_config_type), intent(in), optional :: nonlinear_terms_config_in
if (initialized) then
call mp_abort("Trying to set nonlinear_terms_config when already initialized.", to_screen = .true.)
end if
if (present(nonlinear_terms_config_in)) then
nonlinear_terms_config = nonlinear_terms_config_in
end if
end subroutine set_nonlinear_terms_config