kernel_cram_from_fortran.cpp File Reference

Interface function for calling kernel_cram() from Fortran. More...

Functions

int kernel_cram_from_fortran (double *n, double *n0, double *source_term, int source_order, double delta_t, int itot, int non, int *non0, int *kd, double *diag, double *offdiag, int *loc, int zero_flux_step, int is_adjoint, int cram_order, int internal_steps, int remove_negatives, double cutoff, int *ZAI)
 

Detailed Description

Interface function for calling kernel_cram() from Fortran.

Author
Aarno Isotalo

Function Documentation

int kernel_cram_from_fortran ( double *  n,
double *  n0,
double *  source_term,
int  source_order,
double  delta_t,
int  itot,
int  non,
int *  non0,
int *  kd,
double *  diag,
double *  offdiag,
int *  loc,
int  zero_flux_step,
int  is_adjoint,
int  cram_order,
int  internal_steps,
int  remove_negatives,
double  cutoff,
int *  ZAI 
)

Interface function for calling kernel_cram() from Fortran. Converts the source_term to the form expected by kernel_cram().

Note
All arguments are the same as for kernel_cram(), except that source_term is a 1D array whose elements must be ordered so that the coefficients for given nuclide are consequtive in memory. This only converts source_term, loc indexing must be converted by the caller.
Returns
EXIT_SUCCESS or EXIT_FAILURE. On failed exit the results (i.e., n) are unspecified.

References kernel_cram().