field_mul_real Function

public pure function field_mul_real(self, a)

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

Arguments

Type IntentOptional Attributes Name
class(field_type), intent(in) :: self

Left hand side

real, intent(in) :: a

Scalar to multiply field instance with

Return Value class(field_type), allocatable


Contents