Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real, | public, | allocatable | :: | data(:,:,:) | |||
real, | public | :: | dx |
Discrete mesh spacing |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | initial(:,:,:) |
Initial state |
||
real, | intent(in) | :: | dx |
Spatial mesh spacing |
Returns domain size in direction
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(field_type), | intent(in) | :: | self |
Returns domain size in direction
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(field_type), | intent(in) | :: | self |
Returns domain size in direction
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(field_type), | intent(in) | :: | self |
Write field data to ASCII file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(field_type), | intent(in) | :: | self | |||
character, | intent(in) | :: | file_path |
Relative path to file to output file |
||
character, | optional | :: | fmt |
Format string |
Compare two field_type instance based on their data value
f1 = field_type(u0, dx)
f2 = field_type(u0, dx2)
f1%is_equal(f2) ! true
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(field_type), | intent(in) | :: | self |
Right hand side of comparison |
||
class(field_type), | intent(in) | :: | lhs |
Left hand side of comparison |
||
real, | intent(in) | :: | tol |
Absolute tolerance when comparing fields values |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(field_type), | intent(in) | :: | self | |||
class(field_type), | intent(in) | :: | afield |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(field_type), | intent(in) | :: | self | |||
real, | intent(in) | :: | a(:,:,:) |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(field_type), | intent(in) | :: | self | |||
class(field_type), | intent(in) | :: | afield |
Multiply a field_cpu_type
instance by a real
number.
f1 = field_cpu_type(u0, dx)
f2 = f1 * 1.3
f2%is_equal(field_cpu_type(u0 * 1.3, dx)) ! true
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(field_type), | intent(in) | :: | self |
Left hand side |
||
real, | intent(in) | :: | a |
Scalar to multiply field instance with |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(field_gpu_type), | intent(in) | :: | self |