mult_sc_add_sc_mult_gf_cgf Interface

interface


Calls

interface~~mult_sc_add_sc_mult_gf_cgf~~CallsGraph interface~mult_sc_add_sc_mult_gf_cgf mult_sc_add_sc_mult_gf_cgf proc~mult_sc_add_sc_mult_gf_cgf mult_sc_add_sc_mult_gf_cgf interface~mult_sc_add_sc_mult_gf_cgf->proc~mult_sc_add_sc_mult_gf_cgf

public module subroutine mult_sc_add_sc_mult_gf_cgf(this, scalar1, scalar2, gf)

Arguments

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

Description

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