ITM AMNS: User Interface  \$Id: Doxyfile 502 2015-10-15 12:23:45Z dpc $
amns_interface.h File Reference
#include <ctype.h>
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "itm_constants.h"
Include dependency graph for amns_interface.h:

Go to the source code of this file.

Classes

struct  amns_version_type
 Type for specifying the AMNS version ("interoperable" version) More...
 
struct  amns_c_version_type
 Type for specifying the AMNS version ("C" version) More...
 
struct  amns_reactant_type
 Type for indicating a single reactant or product when using the AMNS interface. More...
 
struct  amns_error_type
 Type for error returns from the AMNS interface ("interoperable" version) More...
 
struct  amns_c_error_type
 Type for error returns from the AMNS interface ("C" version) More...
 
struct  amns_reaction_type
 Type used for specifying reactions when using the AMNS interface ("interoperable" version) More...
 
struct  amns_c_reaction_type
 Type used for specifying reactions when using the AMNS interface ("C" version) More...
 
struct  amns_set_type
 Type for setting parameters in the AMNS package ("interoperable" version) More...
 
struct  amns_c_set_type
 Type for setting parameters in the AMNS package ("C" version) More...
 
struct  amns_query_type
 Type for querying parameters in the AMNS package ("interoperable" version) More...
 
struct  amns_c_query_type
 Type for querying parameters in the AMNS package ("C" version) More...
 
struct  amns_answer_type
 Type for answers from queries in the AMNS package ("interoperable" version) More...
 
struct  amns_c_answer_type
 Type for answers from queries in the AMNS package ("C" version) More...
 

Macros

#define version_length   32
 
#define set_length   32
 
#define reaction_length   16
 
#define query_length   16
 
#define answer_length   128
 
#define amns_max_length   128
 

Typedefs

typedef amns_reactant_type amns_c_reactant_type
 

Functions

char * strcpy_f2c (char *fsrc, int flen, char **cdest)
 
char * strcpy_c2f (char *csrc, char *fdest, int flen)
 
amns_c_version_type get_default_amns_c_version_type (void)
 prototype More...
 
void amns_version_type_f2c (amns_version_type ftype, amns_c_version_type *ctype)
 
void amns_version_type_c2f (amns_c_version_type ctype, amns_version_type *ftype)
 
amns_c_reactant_type get_default_amns_c_reactant_type (void)
 prototype More...
 
amns_c_error_type get_default_amns_c_error_type (void)
 prototype More...
 
void amns_error_type_f2c (amns_error_type ftype, amns_c_error_type *ctype)
 
void amns_error_type_c2f (amns_c_error_type ctype, amns_error_type *ftype)
 
amns_c_reaction_type get_default_amns_c_reaction_type (void)
 prototype More...
 
void amns_reaction_type_f2c (amns_reaction_type ftype, amns_c_reaction_type *ctype)
 
void amns_reaction_type_c2f (amns_c_reaction_type ctype, amns_reaction_type *ftype)
 
void amns_set_type_f2c (amns_set_type ftype, amns_c_set_type *ctype)
 
void amns_set_type_c2f (amns_c_set_type ctype, amns_set_type *ftype)
 
void amns_query_type_f2c (amns_query_type ftype, amns_c_query_type *ctype)
 
void amns_query_type_c2f (amns_c_query_type ctype, amns_query_type *ftype)
 
void amns_answer_type_f2c (amns_answer_type ftype, amns_c_answer_type *ctype)
 
void amns_answer_type_c2f (amns_c_answer_type ctype, amns_answer_type *ftype)
 
void ITM_AMNS_C_SETUP (void **handle_out, amns_error_type *error_status)
 
void ITM_AMNS_C_SETUP_VERSION (void **handle_in, amns_version_type *version, amns_error_type *error_status)
 
void ITM_AMNS_C_FINISH (void **handle_inout, amns_error_type *error_status)
 
void ITM_AMNS_C_FINISH_TABLE (void **handle_rx_inout, amns_error_type *error_status)
 
void ITM_AMNS_C_SET (void *handle_in, amns_set_type *set, amns_error_type *error_status)
 
void ITM_AMNS_C_QUERY (void *handle_in, amns_query_type *query, amns_answer_type *answer, amns_error_type *error_status)
 
void ITM_AMNS_C_SETUP_TABLE (void *handle_in, amns_reaction_type *reaction_type, void *reactant_handle_in, void **handle_rx_out, amns_error_type *error_status)
 
void ITM_AMNS_C_QUERY_TABLE (void *handle_rx_in, amns_query_type *query, amns_answer_type *answer, amns_error_type *error_status)
 
void ITM_AMNS_C_SET_TABLE (void *handle_rx_in, amns_set_type *set, amns_error_type *error_status)
 
void ITM_AMNS_C_RX_0_A (void *handle_rx_in, double *out, double arg1, amns_error_type *error_status)
 
void ITM_AMNS_C_RX_0_B (void *handle_rx_in, double *out, double arg1, double arg2, amns_error_type *error_status)
 
void ITM_AMNS_C_RX_0_C (void *handle_rx_in, double *out, double arg1, double arg2, double arg3, amns_error_type *error_status)
 
void ITM_AMNS_C_RX_1_A (void *handle_rx_in, int nx, double *out, double *arg1, amns_error_type *error_status)
 
void ITM_AMNS_C_RX_1_B (void *handle_rx_in, int nx, double *out, double *arg1, double *arg2, amns_error_type *error_status)
 
void ITM_AMNS_C_RX_1_C (void *handle_rx_in, int nx, double *out, double *arg1, double *arg2, double *arg3, amns_error_type *error_status)
 
void ITM_AMNS_C_RX_2_A (void *handle_rx_in, int nx, int ny, double *out, double *arg1, amns_error_type *error_status)
 
void ITM_AMNS_C_RX_2_B (void *handle_rx_in, int nx, int ny, double *out, double *arg1, double *arg2, amns_error_type *error_status)
 
void ITM_AMNS_C_RX_2_C (void *handle_rx_in, int nx, int ny, double *out, double *arg1, double *arg2, double *arg3, amns_error_type *error_status)
 
void ITM_AMNS_C_RX_3_A (void *handle_rx_in, int nx, int ny, int nz, double *out, double *arg1, amns_error_type *error_status)
 
void ITM_AMNS_C_RX_3_B (void *handle_rx_in, int nx, int ny, int nz, double *out, double *arg1, double *arg2, amns_error_type *error_status)
 
void ITM_AMNS_C_RX_3_C (void *handle_rx_in, int nx, int ny, int nz, double *out, double *arg1, double *arg2, double *arg3, amns_error_type *error_status)
 
void ITM_AMNS_C_SETUP_REACTANTS (void **reactants_handle_out, char string_in[reaction_length], int index_in, int n_reactants)
 
void ITM_AMNS_C_SET_REACTANT (void *reactants_handle_in, int reactant_index, amns_reactant_type *reactant_in)
 
void ITM_AMNS_C_GET_REACTANT (void *reactants_handle_in, int reactant_index, amns_reactant_type *reactant_out)
 
void ITM_AMNS_C_FINISH_REACTANTS (void **reactants_handle_inout)
 
int fstrlen (char *fstr, int flen)
 
void ITM_AMNS_CC_SETUP (void **handle_out, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_SETUP_VERSION (void **handle_in, amns_c_version_type *version, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_FINISH (void **handle_inout, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_FINISH_TABLE (void **handle_rx_inout, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_SET (void *handle_in, amns_c_set_type *set, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_QUERY (void *handle_in, amns_c_query_type *query, amns_c_answer_type *answer, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_SETUP_TABLE (void *handle_in, amns_c_reaction_type *reaction_type, void *reactant_handle_in, void **handle_rx_out, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_QUERY_TABLE (void *handle_rx_in, amns_c_query_type *query, amns_c_answer_type *answer, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_SET_TABLE (void *handle_rx_in, amns_c_set_type *set, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_RX_0_A (void *handle_rx_in, double *out, double arg1, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_RX_0_B (void *handle_rx_in, double *out, double arg1, double arg2, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_RX_0_C (void *handle_rx_in, double *out, double arg1, double arg2, double arg3, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_RX_1_A (void *handle_rx_in, int nx, double *out, double *arg1, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_RX_1_B (void *handle_rx_in, int nx, double *out, double *arg1, double *arg2, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_RX_1_C (void *handle_rx_in, int nx, double *out, double *arg1, double *arg2, double *arg3, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_RX_2_A (void *handle_rx_in, int nx, int ny, double *out, double *arg1, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_RX_2_B (void *handle_rx_in, int nx, int ny, double *out, double *arg1, double *arg2, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_RX_2_C (void *handle_rx_in, int nx, int ny, double *out, double *arg1, double *arg2, double *arg3, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_RX_3_A (void *handle_rx_in, int nx, int ny, int nz, double *out, double *arg1, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_RX_3_B (void *handle_rx_in, int nx, int ny, int nz, double *out, double *arg1, double *arg2, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_RX_3_C (void *handle_rx_in, int nx, int ny, int nz, double *out, double *arg1, double *arg2, double *arg3, amns_c_error_type *error_status)
 
void ITM_AMNS_CC_SETUP_REACTANTS (void **reactants_handle_out, char *string_in, int index_in, int n_reactants)
 
void ITM_AMNS_CC_SET_REACTANT (void *reactants_handle_in, int reactant_index, amns_c_reactant_type *reactant_in)
 
void ITM_AMNS_CC_GET_REACTANT (void *reactants_handle_in, int reactant_index, amns_c_reactant_type *reactant_out)
 
void ITM_AMNS_CC_FINISH_REACTANTS (void **reactants_handle_inout)
 

Variables

const amns_version_type DEFAULT_AMNS_VERSION_TYPE = { "", 0, "", "" }
 
const amns_c_version_type DEFAULT_AMNS_C_VERSION_TYPE = { "", 0, "", "" }
 
const amns_reactant_type DEFAULT_AMNS_REACTANT_TYPE = { 0.0, 0.0, 0.0, 0, ITM_INVALID_FLOAT, ITM_INVALID_INT }
 
const amns_c_reactant_type DEFAULT_AMNS_C_REACTANT_TYPE = { 0.0, 0.0, 0.0, 0, ITM_INVALID_FLOAT, ITM_INVALID_INT }
 
const amns_error_type DEFAULT_AMNS_ERROR_TYPE = { false, "" }
 
const amns_c_error_type DEFAULT_AMNS_C_ERROR_TYPE = { false, "" }
 
const amns_reaction_type DEFAULT_AMNS_REACTION_TYPE = { "", 0 }
 
const amns_c_reaction_type DEFAULT_AMNS_C_REACTION_TYPE = { "", 0 }
 
const amns_set_type DEFAULT_AMNS_SET_TYPE = { "" }
 
const amns_c_set_type DEFAULT_AMNS_C_SET_TYPE = { "" }
 
const amns_query_type DEFAULT_AMNS_QUERY_TYPE = { "" }
 
const amns_c_query_type DEFAULT_AMNS_C_QUERY_TYPE = { "" }
 
const amns_answer_type DEFAULT_AMNS_ANSWER_TYPE = { "", 0 }
 
const amns_c_answer_type DEFAULT_AMNS_C_ANSWER_TYPE = { "", 0 }
 

Macro Definition Documentation

#define amns_max_length   128

Definition at line 46 of file amns_interface.h.

#define answer_length   128

Definition at line 45 of file amns_interface.h.

#define query_length   16

Definition at line 44 of file amns_interface.h.

#define reaction_length   16

Definition at line 43 of file amns_interface.h.

#define set_length   32

Definition at line 42 of file amns_interface.h.

#define version_length   32

Definition at line 41 of file amns_interface.h.

Typedef Documentation

Definition at line 109 of file amns_interface.h.

Function Documentation

void amns_answer_type_c2f ( amns_c_answer_type  ctype,
amns_answer_type ftype 
)

Definition at line 274 of file amns_interface.h.

274  {
275  strcpy_c2f(ctype.string, ftype->string, answer_length);
276  ftype->number = ctype.number;
277 }
char * string
string version of the answer to a query
int number
integer version of the answer to a query
char * strcpy_c2f(char *csrc, char *fdest, int flen)
#define answer_length
int number
integer version of the answer to a query
char string[answer_length]
string version of the answer to a query

Here is the call graph for this function:

void amns_answer_type_f2c ( amns_answer_type  ftype,
amns_c_answer_type ctype 
)

Definition at line 269 of file amns_interface.h.

269  {
270  strcpy_f2c(ftype.string, answer_length, &(ctype->string));
271  ctype->number = ftype.number;
272 }
char * string
string version of the answer to a query
int number
integer version of the answer to a query
char * strcpy_f2c(char *fsrc, int flen, char **cdest)
#define answer_length
int number
integer version of the answer to a query
char string[answer_length]
string version of the answer to a query

Here is the call graph for this function:

Here is the caller graph for this function:

void amns_error_type_c2f ( amns_c_error_type  ctype,
amns_error_type ftype 
)

Definition at line 152 of file amns_interface.h.

152  {
153  strcpy_c2f(ctype.string, ftype->string, answer_length);
154  ftype->flag = ctype.flag;
155 }
bool flag
True if an error occurred.
char * strcpy_c2f(char *csrc, char *fdest, int flen)
char string[answer_length]
text describing the error if flag was True
#define answer_length
bool flag
True if an error occurred.
char * string
text describing the error if flag was True

Here is the call graph for this function:

void amns_error_type_f2c ( amns_error_type  ftype,
amns_c_error_type ctype 
)

Definition at line 147 of file amns_interface.h.

147  {
148  strcpy_f2c(ftype.string, answer_length, &(ctype->string));
149  ctype->flag = ftype.flag;
150 }
bool flag
True if an error occurred.
char string[answer_length]
text describing the error if flag was True
char * strcpy_f2c(char *fsrc, int flen, char **cdest)
#define answer_length
bool flag
True if an error occurred.
char * string
text describing the error if flag was True

Here is the call graph for this function:

Here is the caller graph for this function:

void amns_query_type_c2f ( amns_c_query_type  ctype,
amns_query_type ftype 
)

Definition at line 244 of file amns_interface.h.

244  {
245  strcpy_c2f(ctype.string, ftype->string, query_length);
246 }
#define query_length
char * strcpy_c2f(char *csrc, char *fdest, int flen)
char string[query_length]
used to pass a query about settings
char * string
used to pass a query about settings

Here is the call graph for this function:

Here is the caller graph for this function:

void amns_query_type_f2c ( amns_query_type  ftype,
amns_c_query_type ctype 
)

Definition at line 240 of file amns_interface.h.

240  {
241  strcpy_f2c(ftype.string, query_length, &(ctype->string));
242 }
#define query_length
char * strcpy_f2c(char *fsrc, int flen, char **cdest)
char string[query_length]
used to pass a query about settings
char * string
used to pass a query about settings

Here is the call graph for this function:

void amns_reaction_type_c2f ( amns_c_reaction_type  ctype,
amns_reaction_type ftype 
)

Definition at line 189 of file amns_interface.h.

189  {
190  strcpy_c2f(ctype.string, ftype->string, reaction_length);
191  ftype->isotope_resolved = ctype.isotope_resolved;
192 }
#define reaction_length
char * string
name of the reaction (e.g. RC)
char * strcpy_c2f(char *csrc, char *fdest, int flen)
int isotope_resolved
if the reaction is different for different isotopes, isotope_resolved shoukld be set to 1 ...
char string[reaction_length]
name of the reaction (e.g. RC)
int isotope_resolved
if the reaction is different for different isotopes, isotope_resolved shoukld be set to 1 ...

Here is the call graph for this function:

Here is the caller graph for this function:

void amns_reaction_type_f2c ( amns_reaction_type  ftype,
amns_c_reaction_type ctype 
)

Definition at line 184 of file amns_interface.h.

184  {
185  strcpy_f2c(ftype.string, reaction_length, &(ctype->string));
186  ctype->isotope_resolved = ftype.isotope_resolved;
187 }
#define reaction_length
char * string
name of the reaction (e.g. RC)
int isotope_resolved
if the reaction is different for different isotopes, isotope_resolved shoukld be set to 1 ...
char * strcpy_f2c(char *fsrc, int flen, char **cdest)
char string[reaction_length]
name of the reaction (e.g. RC)
int isotope_resolved
if the reaction is different for different isotopes, isotope_resolved shoukld be set to 1 ...

Here is the call graph for this function:

void amns_set_type_c2f ( amns_c_set_type  ctype,
amns_set_type ftype 
)

Definition at line 217 of file amns_interface.h.

217  {
218  strcpy_c2f(ctype.string, ftype->string, set_length);
219 }
char * string
used to pass a change in the settings
char * strcpy_c2f(char *csrc, char *fdest, int flen)
char string[set_length]
used to pass a change in the settings
#define set_length

Here is the call graph for this function:

Here is the caller graph for this function:

void amns_set_type_f2c ( amns_set_type  ftype,
amns_c_set_type ctype 
)

Definition at line 213 of file amns_interface.h.

213  {
214  strcpy_f2c(ftype.string, set_length, &(ctype->string));
215 }
char * string
used to pass a change in the settings
char * strcpy_f2c(char *fsrc, int flen, char **cdest)
char string[set_length]
used to pass a change in the settings
#define set_length

Here is the call graph for this function:

void amns_version_type_c2f ( amns_c_version_type  ctype,
amns_version_type ftype 
)

Definition at line 89 of file amns_interface.h.

89  {
90  strcpy_c2f(ctype.string, ftype->string, version_length);
91  ftype->number = ctype.number;
92  strcpy_c2f(ctype.backend, ftype->backend, version_length);
93  strcpy_c2f(ctype.user, ftype->user, version_length);
94 }
#define version_length
char backend[version_length]
specify the backend to be used to access the CPOs
char * strcpy_c2f(char *csrc, char *fdest, int flen)
char * backend
specify the backend to be used to access the CPOs
char string[version_length]
ascii specification of the version
char * string
ascii specification of the version
int number
integer specification of the version number (primary specification at the moment) ...
char user[version_length]
specify the username of the data to be obtained (defaults to tghe person running the code) ...
char * user
specify the username of the data to be obtained (defaults to tghe person running the code) ...
int number
integer specification of the version number (primary specification at the moment) ...

Here is the call graph for this function:

Here is the caller graph for this function:

void amns_version_type_f2c ( amns_version_type  ftype,
amns_c_version_type ctype 
)

Definition at line 82 of file amns_interface.h.

82  {
83  strcpy_f2c(ftype.string, version_length, &((*ctype).string));
84  ctype->number = ftype.number;
85  strcpy_f2c(ftype.backend, version_length, &(ctype->backend));
86  strcpy_f2c(ftype.user, version_length, &(ctype->user));
87 }
#define version_length
char backend[version_length]
specify the backend to be used to access the CPOs
char * strcpy_f2c(char *fsrc, int flen, char **cdest)
char * backend
specify the backend to be used to access the CPOs
char string[version_length]
ascii specification of the version
int number
integer specification of the version number (primary specification at the moment) ...
char user[version_length]
specify the username of the data to be obtained (defaults to tghe person running the code) ...
char * user
specify the username of the data to be obtained (defaults to tghe person running the code) ...
int number
integer specification of the version number (primary specification at the moment) ...

Here is the call graph for this function:

int fstrlen ( char *  fstr,
int  flen 
)

Definition at line 324 of file amns_interface.h.

324  {
325  char *end;
326  end = fstr + flen - 1;
327  while(end >= fstr && isspace(*end)) end--;
328  return end - fstr + 1;
329 }

Here is the caller graph for this function:

amns_c_error_type get_default_amns_c_error_type ( void  )

prototype

Definition at line 143 of file amns_interface.h.

143  {
145 }
const amns_c_error_type DEFAULT_AMNS_C_ERROR_TYPE
amns_c_reactant_type get_default_amns_c_reactant_type ( void  )

prototype

Definition at line 116 of file amns_interface.h.

116  {
118 }
const amns_c_reactant_type DEFAULT_AMNS_C_REACTANT_TYPE
amns_c_reaction_type get_default_amns_c_reaction_type ( void  )

prototype

Definition at line 180 of file amns_interface.h.

180  {
182 }
const amns_c_reaction_type DEFAULT_AMNS_C_REACTION_TYPE
amns_c_version_type get_default_amns_c_version_type ( void  )

prototype

Definition at line 78 of file amns_interface.h.

78  {
80 }
const amns_c_version_type DEFAULT_AMNS_C_VERSION_TYPE
void ITM_AMNS_C_FINISH ( void **  handle_inout,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_FINISH_REACTANTS ( void **  reactants_handle_inout)

Here is the caller graph for this function:

void ITM_AMNS_C_FINISH_TABLE ( void **  handle_rx_inout,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_GET_REACTANT ( void *  reactants_handle_in,
int  reactant_index,
amns_reactant_type reactant_out 
)

Here is the caller graph for this function:

void ITM_AMNS_C_QUERY ( void *  handle_in,
amns_query_type query,
amns_answer_type answer,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_QUERY_TABLE ( void *  handle_rx_in,
amns_query_type query,
amns_answer_type answer,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_RX_0_A ( void *  handle_rx_in,
double *  out,
double  arg1,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_RX_0_B ( void *  handle_rx_in,
double *  out,
double  arg1,
double  arg2,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_RX_0_C ( void *  handle_rx_in,
double *  out,
double  arg1,
double  arg2,
double  arg3,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_RX_1_A ( void *  handle_rx_in,
int  nx,
double *  out,
double *  arg1,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_RX_1_B ( void *  handle_rx_in,
int  nx,
double *  out,
double *  arg1,
double *  arg2,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_RX_1_C ( void *  handle_rx_in,
int  nx,
double *  out,
double *  arg1,
double *  arg2,
double *  arg3,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_RX_2_A ( void *  handle_rx_in,
int  nx,
int  ny,
double *  out,
double *  arg1,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_RX_2_B ( void *  handle_rx_in,
int  nx,
int  ny,
double *  out,
double *  arg1,
double *  arg2,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_RX_2_C ( void *  handle_rx_in,
int  nx,
int  ny,
double *  out,
double *  arg1,
double *  arg2,
double *  arg3,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_RX_3_A ( void *  handle_rx_in,
int  nx,
int  ny,
int  nz,
double *  out,
double *  arg1,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_RX_3_B ( void *  handle_rx_in,
int  nx,
int  ny,
int  nz,
double *  out,
double *  arg1,
double *  arg2,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_RX_3_C ( void *  handle_rx_in,
int  nx,
int  ny,
int  nz,
double *  out,
double *  arg1,
double *  arg2,
double *  arg3,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_SET ( void *  handle_in,
amns_set_type set,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_SET_REACTANT ( void *  reactants_handle_in,
int  reactant_index,
amns_reactant_type reactant_in 
)

Here is the caller graph for this function:

void ITM_AMNS_C_SET_TABLE ( void *  handle_rx_in,
amns_set_type set,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_SETUP ( void **  handle_out,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_SETUP_REACTANTS ( void **  reactants_handle_out,
char  string_in[reaction_length],
int  index_in,
int  n_reactants 
)

Here is the caller graph for this function:

void ITM_AMNS_C_SETUP_TABLE ( void *  handle_in,
amns_reaction_type reaction_type,
void *  reactant_handle_in,
void **  handle_rx_out,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_C_SETUP_VERSION ( void **  handle_in,
amns_version_type version,
amns_error_type error_status 
)

Here is the caller graph for this function:

void ITM_AMNS_CC_FINISH ( void **  handle_inout,
amns_c_error_type error_status 
)

Definition at line 394 of file amns_interface.h.

394  {
395  amns_error_type f_error_status;
396  //amns_error_type_c2f(*error_status, &f_error_status);
397  ITM_AMNS_C_FINISH(handle_inout, &f_error_status);
398  amns_error_type_f2c(f_error_status, error_status);
399 }
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)
void ITM_AMNS_C_FINISH(void **handle_inout, amns_error_type *error_status)

Here is the call graph for this function:

Here is the caller graph for this function:

void ITM_AMNS_CC_FINISH_REACTANTS ( void **  reactants_handle_inout)

Definition at line 564 of file amns_interface.h.

564  {
565  ITM_AMNS_C_FINISH_REACTANTS(reactants_handle_inout);
566 }
void ITM_AMNS_C_FINISH_REACTANTS(void **reactants_handle_inout)

Here is the call graph for this function:

Here is the caller graph for this function:

void ITM_AMNS_CC_FINISH_TABLE ( void **  handle_rx_inout,
amns_c_error_type error_status 
)

Definition at line 401 of file amns_interface.h.

401  {
402  amns_error_type f_error_status;
403  //amns_error_type_c2f(*error_status, &f_error_status);
404  ITM_AMNS_C_FINISH_TABLE(handle_rx_inout, &f_error_status);
405  amns_error_type_f2c(f_error_status, error_status);
406 }
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)
void ITM_AMNS_C_FINISH_TABLE(void **handle_rx_inout, amns_error_type *error_status)

Here is the call graph for this function:

Here is the caller graph for this function:

void ITM_AMNS_CC_GET_REACTANT ( void *  reactants_handle_in,
int  reactant_index,
amns_c_reactant_type reactant_out 
)

Definition at line 560 of file amns_interface.h.

560  {
561  ITM_AMNS_C_GET_REACTANT(reactants_handle_in, reactant_index, (amns_reactant_type*)reactant_out);
562 }
void ITM_AMNS_C_GET_REACTANT(void *reactants_handle_in, int reactant_index, amns_reactant_type *reactant_out)
Type for indicating a single reactant or product when using the AMNS interface.

Here is the call graph for this function:

Here is the caller graph for this function:

void ITM_AMNS_CC_QUERY ( void *  handle_in,
amns_c_query_type query,
amns_c_answer_type answer,
amns_c_error_type error_status 
)

Definition at line 418 of file amns_interface.h.

418  {
419  amns_error_type f_error_status;
420  amns_answer_type f_answer;
421  amns_query_type f_query;
422  //amns_error_type_c2f(*error_status, &f_error_status);
423  //amns_answer_type_c2f(*answer, &f_answer);
424  amns_query_type_c2f(*query, &f_query);
425  ITM_AMNS_C_QUERY(handle_in, &f_query, &f_answer, &f_error_status);
426  amns_error_type_f2c(f_error_status, error_status);
427  amns_answer_type_f2c(f_answer, answer);
428  //amns_query_type_f2c(f_query, query);
429 }
void amns_query_type_c2f(amns_c_query_type ctype, amns_query_type *ftype)
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for answers from queries in the AMNS package (&quot;interoperable&quot; version)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)
Type for querying parameters in the AMNS package (&quot;interoperable&quot; version)
void ITM_AMNS_C_QUERY(void *handle_in, amns_query_type *query, amns_answer_type *answer, amns_error_type *error_status)
void amns_answer_type_f2c(amns_answer_type ftype, amns_c_answer_type *ctype)

Here is the call graph for this function:

Here is the caller graph for this function:

void ITM_AMNS_CC_QUERY_TABLE ( void *  handle_rx_in,
amns_c_query_type query,
amns_c_answer_type answer,
amns_c_error_type error_status 
)

Definition at line 441 of file amns_interface.h.

441  {
442  amns_error_type f_error_status;
443  amns_query_type f_query;
444  amns_answer_type f_answer;
445  //amns_error_type_c2f(*error_status, &f_error_status);
446  amns_query_type_c2f(*query, &f_query);
447  //amns_answer_type_c2f(*answer, &f_answer);
448  ITM_AMNS_C_QUERY_TABLE(handle_rx_in, &f_query, &f_answer, &f_error_status);
449  amns_error_type_f2c(f_error_status, error_status);
450  //amns_query_type_f2c(f_query, query);
451  amns_answer_type_f2c(f_answer, answer);
452 }
void amns_query_type_c2f(amns_c_query_type ctype, amns_query_type *ftype)
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for answers from queries in the AMNS package (&quot;interoperable&quot; version)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)
void ITM_AMNS_C_QUERY_TABLE(void *handle_rx_in, amns_query_type *query, amns_answer_type *answer, amns_error_type *error_status)
Type for querying parameters in the AMNS package (&quot;interoperable&quot; version)
void amns_answer_type_f2c(amns_answer_type ftype, amns_c_answer_type *ctype)

Here is the call graph for this function:

Here is the caller graph for this function:

void ITM_AMNS_CC_RX_0_A ( void *  handle_rx_in,
double *  out,
double  arg1,
amns_c_error_type error_status 
)

Definition at line 464 of file amns_interface.h.

464  {
465  amns_error_type f_error_status;
466  //amns_error_type_c2f(*error_status, &f_error_status);
467  ITM_AMNS_C_RX_0_A(handle_rx_in, out, arg1, &f_error_status);
468  amns_error_type_f2c(f_error_status, error_status);
469 }
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)
void ITM_AMNS_C_RX_0_A(void *handle_rx_in, double *out, double arg1, amns_error_type *error_status)

Here is the call graph for this function:

void ITM_AMNS_CC_RX_0_B ( void *  handle_rx_in,
double *  out,
double  arg1,
double  arg2,
amns_c_error_type error_status 
)

Definition at line 471 of file amns_interface.h.

471  {
472  amns_error_type f_error_status;
473  //amns_error_type_c2f(*error_status, &f_error_status);
474  ITM_AMNS_C_RX_0_B(handle_rx_in, out, arg1, arg2, &f_error_status);
475  amns_error_type_f2c(f_error_status, error_status);
476 }
void ITM_AMNS_C_RX_0_B(void *handle_rx_in, double *out, double arg1, double arg2, amns_error_type *error_status)
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)

Here is the call graph for this function:

Here is the caller graph for this function:

void ITM_AMNS_CC_RX_0_C ( void *  handle_rx_in,
double *  out,
double  arg1,
double  arg2,
double  arg3,
amns_c_error_type error_status 
)

Definition at line 478 of file amns_interface.h.

478  {
479  amns_error_type f_error_status;
480  //amns_error_type_c2f(*error_status, &f_error_status);
481  ITM_AMNS_C_RX_0_C(handle_rx_in, out, arg1, arg2, arg3, &f_error_status);
482  amns_error_type_f2c(f_error_status, error_status);
483 }
void ITM_AMNS_C_RX_0_C(void *handle_rx_in, double *out, double arg1, double arg2, double arg3, amns_error_type *error_status)
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)

Here is the call graph for this function:

void ITM_AMNS_CC_RX_1_A ( void *  handle_rx_in,
int  nx,
double *  out,
double *  arg1,
amns_c_error_type error_status 
)

Definition at line 485 of file amns_interface.h.

485  {
486  amns_error_type f_error_status;
487  //amns_error_type_c2f(*error_status, &f_error_status);
488  ITM_AMNS_C_RX_1_A(handle_rx_in, nx, out, arg1, &f_error_status);
489  amns_error_type_f2c(f_error_status, error_status);
490 }
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)
void ITM_AMNS_C_RX_1_A(void *handle_rx_in, int nx, double *out, double *arg1, amns_error_type *error_status)

Here is the call graph for this function:

Here is the caller graph for this function:

void ITM_AMNS_CC_RX_1_B ( void *  handle_rx_in,
int  nx,
double *  out,
double *  arg1,
double *  arg2,
amns_c_error_type error_status 
)

Definition at line 492 of file amns_interface.h.

492  {
493  amns_error_type f_error_status;
494  //amns_error_type_c2f(*error_status, &f_error_status);
495  ITM_AMNS_C_RX_1_B(handle_rx_in, nx, out, arg1, arg2, &f_error_status);
496  amns_error_type_f2c(f_error_status, error_status);
497 }
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)
void ITM_AMNS_C_RX_1_B(void *handle_rx_in, int nx, double *out, double *arg1, double *arg2, amns_error_type *error_status)

Here is the call graph for this function:

Here is the caller graph for this function:

void ITM_AMNS_CC_RX_1_C ( void *  handle_rx_in,
int  nx,
double *  out,
double *  arg1,
double *  arg2,
double *  arg3,
amns_c_error_type error_status 
)

Definition at line 499 of file amns_interface.h.

499  {
500  amns_error_type f_error_status;
501  //amns_error_type_c2f(*error_status, &f_error_status);
502  ITM_AMNS_C_RX_1_C(handle_rx_in, nx, out, arg1, arg2, arg3, &f_error_status);
503  amns_error_type_f2c(f_error_status, error_status);
504 }
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
void ITM_AMNS_C_RX_1_C(void *handle_rx_in, int nx, double *out, double *arg1, double *arg2, double *arg3, amns_error_type *error_status)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)

Here is the call graph for this function:

Here is the caller graph for this function:

void ITM_AMNS_CC_RX_2_A ( void *  handle_rx_in,
int  nx,
int  ny,
double *  out,
double *  arg1,
amns_c_error_type error_status 
)

Definition at line 506 of file amns_interface.h.

506  {
507  amns_error_type f_error_status;
508  //amns_error_type_c2f(*error_status, &f_error_status);
509  ITM_AMNS_C_RX_2_A(handle_rx_in, nx, ny, out, arg1, &f_error_status);
510  amns_error_type_f2c(f_error_status, error_status);
511 }
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)
void ITM_AMNS_C_RX_2_A(void *handle_rx_in, int nx, int ny, double *out, double *arg1, amns_error_type *error_status)

Here is the call graph for this function:

void ITM_AMNS_CC_RX_2_B ( void *  handle_rx_in,
int  nx,
int  ny,
double *  out,
double *  arg1,
double *  arg2,
amns_c_error_type error_status 
)

Definition at line 513 of file amns_interface.h.

513  {
514  amns_error_type f_error_status;
515  //amns_error_type_c2f(*error_status, &f_error_status);
516  ITM_AMNS_C_RX_2_B(handle_rx_in, nx, ny, out, arg1, arg2, &f_error_status);
517  amns_error_type_f2c(f_error_status, error_status);
518 }
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
void ITM_AMNS_C_RX_2_B(void *handle_rx_in, int nx, int ny, double *out, double *arg1, double *arg2, amns_error_type *error_status)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)

Here is the call graph for this function:

void ITM_AMNS_CC_RX_2_C ( void *  handle_rx_in,
int  nx,
int  ny,
double *  out,
double *  arg1,
double *  arg2,
double *  arg3,
amns_c_error_type error_status 
)

Definition at line 520 of file amns_interface.h.

520  {
521  amns_error_type f_error_status;
522  //amns_error_type_c2f(*error_status, &f_error_status);
523  ITM_AMNS_C_RX_2_C(handle_rx_in, nx, ny, out, arg1, arg2, arg3, &f_error_status);
524  amns_error_type_f2c(f_error_status, error_status);
525 }
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)
void ITM_AMNS_C_RX_2_C(void *handle_rx_in, int nx, int ny, double *out, double *arg1, double *arg2, double *arg3, amns_error_type *error_status)

Here is the call graph for this function:

void ITM_AMNS_CC_RX_3_A ( void *  handle_rx_in,
int  nx,
int  ny,
int  nz,
double *  out,
double *  arg1,
amns_c_error_type error_status 
)

Definition at line 527 of file amns_interface.h.

527  {
528  amns_error_type f_error_status;
529  //amns_error_type_c2f(*error_status, &f_error_status);
530  ITM_AMNS_C_RX_3_A(handle_rx_in, nx, ny, nz, out, arg1, &f_error_status);
531  amns_error_type_f2c(f_error_status, error_status);
532 }
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
void ITM_AMNS_C_RX_3_A(void *handle_rx_in, int nx, int ny, int nz, double *out, double *arg1, amns_error_type *error_status)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)

Here is the call graph for this function:

void ITM_AMNS_CC_RX_3_B ( void *  handle_rx_in,
int  nx,
int  ny,
int  nz,
double *  out,
double *  arg1,
double *  arg2,
amns_c_error_type error_status 
)

Definition at line 534 of file amns_interface.h.

534  {
535  amns_error_type f_error_status;
536  //amns_error_type_c2f(*error_status, &f_error_status);
537  ITM_AMNS_C_RX_3_B(handle_rx_in, nx, ny, nz, out, arg1, arg2, &f_error_status);
538  amns_error_type_f2c(f_error_status, error_status);
539 }
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)
void ITM_AMNS_C_RX_3_B(void *handle_rx_in, int nx, int ny, int nz, double *out, double *arg1, double *arg2, amns_error_type *error_status)

Here is the call graph for this function:

void ITM_AMNS_CC_RX_3_C ( void *  handle_rx_in,
int  nx,
int  ny,
int  nz,
double *  out,
double *  arg1,
double *  arg2,
double *  arg3,
amns_c_error_type error_status 
)

Definition at line 541 of file amns_interface.h.

541  {
542  amns_error_type f_error_status;
543  //amns_error_type_c2f(*error_status, &f_error_status);
544  ITM_AMNS_C_RX_3_C(handle_rx_in, nx, ny, nz, out, arg1, arg2, arg3, &f_error_status);
545  amns_error_type_f2c(f_error_status, error_status);
546 }
void ITM_AMNS_C_RX_3_C(void *handle_rx_in, int nx, int ny, int nz, double *out, double *arg1, double *arg2, double *arg3, amns_error_type *error_status)
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)

Here is the call graph for this function:

void ITM_AMNS_CC_SET ( void *  handle_in,
amns_c_set_type set,
amns_c_error_type error_status 
)

Definition at line 408 of file amns_interface.h.

408  {
409  amns_error_type f_error_status;
410  amns_set_type f_set;
411  //amns_error_type_c2f(*error_status, &f_error_status);
412  amns_set_type_c2f(*set, &f_set);
413  ITM_AMNS_C_SET(handle_in, &f_set, &f_error_status);
414  amns_error_type_f2c(f_error_status, error_status);
415  //amns_set_type_f2c(f_set, set);
416 }
void ITM_AMNS_C_SET(void *handle_in, amns_set_type *set, amns_error_type *error_status)
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)
Type for setting parameters in the AMNS package (&quot;interoperable&quot; version)
void amns_set_type_c2f(amns_c_set_type ctype, amns_set_type *ftype)

Here is the call graph for this function:

Here is the caller graph for this function:

void ITM_AMNS_CC_SET_REACTANT ( void *  reactants_handle_in,
int  reactant_index,
amns_c_reactant_type reactant_in 
)

Definition at line 555 of file amns_interface.h.

555  {
556  // amns_c_reactant_type and amns_reactant_type are the same
557  ITM_AMNS_C_SET_REACTANT(reactants_handle_in, reactant_index, (amns_reactant_type*)reactant_in);
558 }
void ITM_AMNS_C_SET_REACTANT(void *reactants_handle_in, int reactant_index, amns_reactant_type *reactant_in)
Type for indicating a single reactant or product when using the AMNS interface.

Here is the call graph for this function:

Here is the caller graph for this function:

void ITM_AMNS_CC_SET_TABLE ( void *  handle_rx_in,
amns_c_set_type set,
amns_c_error_type error_status 
)

Definition at line 454 of file amns_interface.h.

454  {
455  amns_error_type f_error_status;
456  amns_set_type f_set;
457  //amns_error_type_c2f(*error_status, &f_error_status);
458  amns_set_type_c2f(*set, &f_set);
459  ITM_AMNS_C_SET_TABLE(handle_rx_in, &f_set, &f_error_status);
460  amns_error_type_f2c(f_error_status, error_status);
461  //amns_set_type_f2c(f_set, set);
462 }
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)
void ITM_AMNS_C_SET_TABLE(void *handle_rx_in, amns_set_type *set, amns_error_type *error_status)
Type for setting parameters in the AMNS package (&quot;interoperable&quot; version)
void amns_set_type_c2f(amns_c_set_type ctype, amns_set_type *ftype)

Here is the call graph for this function:

Here is the caller graph for this function:

void ITM_AMNS_CC_SETUP ( void **  handle_out,
amns_c_error_type error_status 
)

Definition at line 377 of file amns_interface.h.

377  {
378  amns_error_type f_error_status;
379  //amns_error_type_c2f(*error_status, &f_error_status);
380  ITM_AMNS_C_SETUP(handle_out, &f_error_status);
381  amns_error_type_f2c(f_error_status, error_status);
382 }
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)
void ITM_AMNS_C_SETUP(void **handle_out, amns_error_type *error_status)

Here is the call graph for this function:

Here is the caller graph for this function:

void ITM_AMNS_CC_SETUP_REACTANTS ( void **  reactants_handle_out,
char *  string_in,
int  index_in,
int  n_reactants 
)

Definition at line 548 of file amns_interface.h.

548  {
549  char f_string_in[reaction_length];
550  strcpy_c2f(string_in, f_string_in, reaction_length);
551  ITM_AMNS_C_SETUP_REACTANTS(reactants_handle_out, f_string_in, index_in, n_reactants);
552  //strcpy_f2c(f_string_inchar, reaction_length, string_in) {
553 }
#define reaction_length
char * strcpy_c2f(char *csrc, char *fdest, int flen)
void ITM_AMNS_C_SETUP_REACTANTS(void **reactants_handle_out, char string_in[reaction_length], int index_in, int n_reactants)

Here is the call graph for this function:

Here is the caller graph for this function:

void ITM_AMNS_CC_SETUP_TABLE ( void *  handle_in,
amns_c_reaction_type reaction_type,
void *  reactant_handle_in,
void **  handle_rx_out,
amns_c_error_type error_status 
)

Definition at line 431 of file amns_interface.h.

431  {
432  amns_error_type f_error_status;
433  amns_reaction_type f_reaction;
434  //amns_error_type_c2f(*error_status, &f_error_status);
435  amns_reaction_type_c2f(*reaction_type, &f_reaction);
436  ITM_AMNS_C_SETUP_TABLE(handle_in, &f_reaction, reactant_handle_in, handle_rx_out, &f_error_status);
437  amns_error_type_f2c(f_error_status, error_status);
438  //amns_reaction_type_f2c(f_reaction, reaction_type);
439 }
void ITM_AMNS_C_SETUP_TABLE(void *handle_in, amns_reaction_type *reaction_type, void *reactant_handle_in, void **handle_rx_out, amns_error_type *error_status)
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)
Type used for specifying reactions when using the AMNS interface (&quot;interoperable&quot; version) ...
void amns_reaction_type_c2f(amns_c_reaction_type ctype, amns_reaction_type *ftype)

Here is the call graph for this function:

Here is the caller graph for this function:

void ITM_AMNS_CC_SETUP_VERSION ( void **  handle_in,
amns_c_version_type version,
amns_c_error_type error_status 
)

Definition at line 384 of file amns_interface.h.

384  {
385  amns_error_type f_error_status;
386  amns_version_type f_version;
387  //amns_error_type_c2f(*error_status, &f_error_status);
388  amns_version_type_c2f(*version, &f_version);
389  ITM_AMNS_C_SETUP_VERSION(handle_in, &f_version, &f_error_status);
390  amns_error_type_f2c(f_error_status, error_status);
391  //amns_version_type_f2c(f_version, version);
392 }
void ITM_AMNS_C_SETUP_VERSION(void **handle_in, amns_version_type *version, amns_error_type *error_status)
Type for specifying the AMNS version (&quot;interoperable&quot; version)
void amns_error_type_f2c(amns_error_type ftype, amns_c_error_type *ctype)
Type for error returns from the AMNS interface (&quot;interoperable&quot; version)
void amns_version_type_c2f(amns_c_version_type ctype, amns_version_type *ftype)

Here is the call graph for this function:

char * strcpy_c2f ( char *  csrc,
char *  fdest,
int  flen 
)

Definition at line 349 of file amns_interface.h.

349  {
350  memset(fdest, ' ', flen);
351  if (csrc != NULL) {
352  int clen = strlen(csrc);
353  if (clen > flen) {
354  printf("strcpy_c2f: WARNING: C string exceeds size of target Fortran string. Truncating.");
355  clen = flen;
356  }
357  memcpy(fdest, csrc, clen);
358  }
359  return fdest;
360 }

Here is the caller graph for this function:

char * strcpy_f2c ( char *  fsrc,
int  flen,
char **  cdest 
)

Definition at line 335 of file amns_interface.h.

335  {
336  int trimlen = fstrlen(fsrc, flen);
337  if (((*cdest) = malloc(trimlen+1)) != NULL) {
338  memcpy(*cdest, fsrc, trimlen);
339  *(*cdest + trimlen) = 0;
340  }
341  return *cdest;
342 }
int fstrlen(char *fstr, int flen)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const amns_answer_type DEFAULT_AMNS_ANSWER_TYPE = { "", 0 }

Definition at line 266 of file amns_interface.h.

const amns_c_answer_type DEFAULT_AMNS_C_ANSWER_TYPE = { "", 0 }

Definition at line 267 of file amns_interface.h.

const amns_c_error_type DEFAULT_AMNS_C_ERROR_TYPE = { false, "" }

Definition at line 139 of file amns_interface.h.

const amns_c_query_type DEFAULT_AMNS_C_QUERY_TYPE = { "" }

Definition at line 238 of file amns_interface.h.

const amns_c_reactant_type DEFAULT_AMNS_C_REACTANT_TYPE = { 0.0, 0.0, 0.0, 0, ITM_INVALID_FLOAT, ITM_INVALID_INT }

Definition at line 112 of file amns_interface.h.

const amns_c_reaction_type DEFAULT_AMNS_C_REACTION_TYPE = { "", 0 }

Definition at line 176 of file amns_interface.h.

const amns_c_set_type DEFAULT_AMNS_C_SET_TYPE = { "" }

Definition at line 211 of file amns_interface.h.

const amns_c_version_type DEFAULT_AMNS_C_VERSION_TYPE = { "", 0, "", "" }

Definition at line 74 of file amns_interface.h.

const amns_error_type DEFAULT_AMNS_ERROR_TYPE = { false, "" }

Definition at line 138 of file amns_interface.h.

const amns_query_type DEFAULT_AMNS_QUERY_TYPE = { "" }

Definition at line 237 of file amns_interface.h.

const amns_reactant_type DEFAULT_AMNS_REACTANT_TYPE = { 0.0, 0.0, 0.0, 0, ITM_INVALID_FLOAT, ITM_INVALID_INT }

Definition at line 111 of file amns_interface.h.

const amns_reaction_type DEFAULT_AMNS_REACTION_TYPE = { "", 0 }

Definition at line 175 of file amns_interface.h.

const amns_set_type DEFAULT_AMNS_SET_TYPE = { "" }

Definition at line 210 of file amns_interface.h.

const amns_version_type DEFAULT_AMNS_VERSION_TYPE = { "", 0, "", "" }

Definition at line 73 of file amns_interface.h.