45 type(user_t),
intent(inout) ::
user
57 type(json_file),
intent(inout) :: params
61 real(kind=rp) :: some_real
64 character(len=:),
allocatable :: some_string
65 real(kind=rp),
allocatable :: some_real_array(:)
67 type(json_file) :: some_json_object
80 call json_get(params,
"case.fluid.scheme", some_string)
84 call json_get_or_default(params,
"case.fluid.Re", some_real, 100.0_rp)
87 call json_extract_object(params,
"case.fluid.initial_condition", &
91 call some_json_object%print()
95 call params%add(
"case.fluid.initial_condition.my_param", 3.0_rp)
98 some_real_array = [1.0_rp, 2.0_rp, 3.0_rp]
99 call params%add(
"case.fluid.initial_condition.value", some_real_array)
100 call params%add(
"case.end_time", 0.0_rp)
103 call json_extract_object(params,
"case.fluid.initial_condition", &
105 call some_json_object%print()
real(kind=rp) some_variable
subroutine user_setup(user)
type(json_file) case_params
subroutine startup(params)