add Interface

interface
public module subroutine add(this, alpha1, s1)

Arguments

Type IntentOptional Attributes Name
class(state_vector_t), intent(inout), target :: this

Instance of the type

real(kind=GP), intent(in) :: alpha1

Scalar

class(state_vector_t), intent(inout), target :: s1

State vector to add to current instance

Description

Adds a scalar multiple of another state vector to the given instance this = this+alpha1*s1