add_sc_mult_gf_cgf Interface

interface


Calls

interface~~add_sc_mult_gf_cgf~~CallsGraph interface~add_sc_mult_gf_cgf add_sc_mult_gf_cgf proc~add_sc_mult_gf_cgf add_sc_mult_gf_cgf interface~add_sc_mult_gf_cgf->proc~add_sc_mult_gf_cgf

public module subroutine add_sc_mult_gf_cgf(this, scalar, gf)

Arguments

Type IntentOptional AttributesName
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.

Description

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(:)