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