Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(cgf), | intent(inout) | :: | this | The routine is called on this object. |
||
real(kind=wp), | intent(in) | :: | scalar1 | The first scalar. |
||
real(kind=wp), | intent(in) | :: | scalar2 | The second scalar. |
||
class(cgf), | intent(in) | :: | gf | The second grid function. |
The interface for a procedure for adding together a scalar multiplying a grid function with another scalar multiplying another grid function and storing the result in the first one.
this%elems(:)%var(:) = scalar1*this%elems(:)%var(:)+scalar2*gf%elems(:)%var(:)