Routine to get a pointer to a new instance of method_data for an operation variable
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | intent(in), | optional | :: | solver_bundle |
Optional solver data to store in tem_varSys_op_data_type |
Pointer to the newly created instance.
function tem_get_new_varSys_data_ptr(solver_bundle) result(resPtr) ! ---------------------------------------------------------------------- ! !> Pointer to the newly created instance. type(c_ptr) :: resPtr !> Optional solver data to store in tem_varSys_op_data_type type(c_ptr), optional, intent(in) :: solver_bundle ! ---------------------------------------------------------------------- ! !> Local variable to allocate a new instance. type(tem_varSys_op_data_type), pointer :: res ! ---------------------------------------------------------------------- ! allocate(res) if (present(solver_bundle)) res%solver_bundle = solver_bundle resPtr = c_loc(res) end function tem_get_new_varSys_data_ptr