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