mus_get_new_solver_ptr Function

public function mus_get_new_solver_ptr(solver) result(resPtr)

Routine to get a pointer to a new instance of mus_varSys_solverData_type to be used as method data for a variable in the variable system.

A new instance is allocated and a c_ptr to this type is returned. Be aware that local pointer are not automatically deallocated when leaving the routine

TODO init the point arrays

Arguments

Type IntentOptional Attributes Name
type(mus_varSys_solverData_type), intent(in), optional, target :: solver

The prototype is used to initialize the new instance.

Return Value type(c_ptr)

Pointer to the newly created instance.