MoDeNa  1.0
Software framework facilitating sequential multi-scale modelling
model_sundials.f90 File Reference

Interface for sundials. More...

Go to the source code of this file.

Functions/Subroutines

subroutine fcvfun (t, y, ydot, ipar, rpar, ier)
 Model interface for sundials. More...
 

Detailed Description

Interface for sundials.

Author
Pavel Ferkl

Special interface needed for integration by sundials.

Definition in file model_sundials.f90.

Function/Subroutine Documentation

◆ fcvfun()

subroutine fcvfun ( real(dp)  t,
real(dp), dimension(neq)  y,
real(dp), dimension(neq)  ydot,
integer(c_long), dimension(1)  ipar,
real(dp), dimension(1)  rpar,
integer  ier 
)

Model interface for sundials.

Must be outside of the module. The name cannot be changed. The name of the model subroutine is hardcoded in here.

Parameters
iererror flag
iparinteger parameters
ttime
yintegrated variables
ydotderivatives of integrated variables
rparreal parameters

Definition at line 15 of file model_sundials.f90.