21 use,
INTRINSIC :: iso_c_binding
33 SUBROUTINE create_world(cworld, file_name, has_output_dir, output_dir, random_number_seed) bind(C, NAME='create_world')
34 use,
INTRINSIC :: iso_c_binding, only: c_ptr, c_bool, c_char, c_long
37 TYPE(c_ptr),
INTENT(OUT) :: cworld
38 character(KIND=C_CHAR,len=1),
intent(in) :: file_name
39 logical(KIND=C_BOOL),
intent(in) :: has_output_dir
40 character(KIND=C_CHAR,len=1),
intent(in) :: output_dir
41 INTEGER(C_LONG),
intent(in),
value ::random_number_seed
46 SUBROUTINE temperature_2d(cworld, x, z, depth, temperature) bind(C, NAME='temperature_2d')
47 use,
INTRINSIC :: iso_c_binding
50 TYPE(c_ptr),
INTENT(IN),
VALUE :: cworld
51 REAL(C_DOUBLE),
intent(in),
value :: x
52 REAL(C_DOUBLE),
intent(in),
value :: z
53 REAL(C_DOUBLE),
intent(in),
value :: depth
54 REAL(C_DOUBLE),
intent(out) :: temperature
59 SUBROUTINE temperature_3d(cworld, x, y, z, depth, temperature) bind(C, NAME='temperature_3d')
60 use,
INTRINSIC :: iso_c_binding
63 TYPE(c_ptr),
INTENT(IN),
VALUE :: cworld
64 REAL(C_DOUBLE),
intent(in),
value :: x
65 REAL(C_DOUBLE),
intent(in),
value :: y
66 REAL(C_DOUBLE),
intent(in),
value :: z
67 REAL(C_DOUBLE),
intent(in),
value :: depth
68 REAL(C_DOUBLE),
intent(out) :: temperature
74 SUBROUTINE composition_2d(cworld, x, z, depth, composition_number, composition) bind(C, NAME='composition_2d')
75 use,
INTRINSIC :: iso_c_binding
78 TYPE(c_ptr),
INTENT(IN),
VALUE :: cworld
79 REAL(C_DOUBLE),
intent(in),
value :: x
80 REAL(C_DOUBLE),
intent(in),
value :: z
81 REAL(C_DOUBLE),
intent(in),
value :: depth
82 INTEGER(C_INT),
intent(in),
value :: composition_number
83 REAL(C_DOUBLE),
intent(out) :: composition
89 SUBROUTINE composition_3d(cworld, x, y, z, depth, composition_number, composition) bind(C, NAME='composition_3d')
90 use,
INTRINSIC :: iso_c_binding
93 TYPE(c_ptr),
INTENT(IN),
VALUE :: cworld
94 REAL(C_DOUBLE),
intent(in),
value :: x
95 REAL(C_DOUBLE),
intent(in),
value :: y
96 REAL(C_DOUBLE),
intent(in),
value :: z
97 REAL(C_DOUBLE),
intent(in),
value :: depth
98 INTEGER(C_INT),
intent(in),
value :: composition_number
99 REAL(C_DOUBLE),
intent(out) :: composition
106 use,
INTRINSIC :: iso_c_binding, only: c_ptr
109 TYPE(c_ptr),
INTENT(IN),
VALUE :: cworld
Create an interface with the 3d composition function of the World builder. This function return the c...
This contains the interface to the world builder for fortran.
Create an interface with the 2d temperature C function of the World builder. This function return the...
Create an interface with the release world function. This is the destructor for the world builder cla...
type(c_ptr) cworld
The C pointer to the World Builder world. It is generated by the create_world function.
Create an interface with the 2d composition function of the World builder. This function return the c...
Create an interface with the 3d temperature function of the World builder. This function return the t...