HEAD | PREVIOUS |
int lmie_in_alloc(lmie_in_data *in, int n_derivs)
in | an lmie_in_data input structure for which to allocate memory |
n_derivs | the number of derivatives for which to allocate memory |
void lmie_in_free(lmie_in_data *in, int flag)
in | an lmie_in_data input structure for which to free memory |
flag | zero if the number of derivatives is zero and nonzero otherwise |
void lmie_out_free(lmie_out_data *out, int flag)
out | an lmie_out_data output structure for which to free memory |
flag | zero if the number of derivatives is zero and nonzero otherwise |
void lmie_in_zero_derivs(lmie_in_data *in, int n_derivs)
in | an lmie_in_data input structure for which to zero the linearized inputs |
int lmie_solution(lmie_in_data *in, lmie_out_data *out, int alloc_out, int verbose, int n_threads, int use_mpi)
in | the lmie_in_data input structure |
out | the lmie_out_data output structure |
alloc_out | Flag indicating whether or not memory should be allocated for the lmie_out_data output structure. This should only be set to "false" if enough memory has already been allocated for the lmie_out_data output structure, either by the user or from a subsequent call to lmie_solution(). The amount of memory used is dependent on the input value r2 so that an initial call to lmie_solution() using a maximum value for r2 will allocate enough memory for subsequent calls with a lesser or equal value of r2. |
n_threads | Number of threads to use. For minimum run times the number of threads should be set to the number of cores available on the machine being used. |
use_mpi | A flag indicating whether or not to use MPI. This requires the execution of two or more separate calling processes using the appropriate MPI execution program. MPI parallelization is above the threaded parallelization in which case n_threads indicates the number of threads to use per MPI process. |
verbose | A flag indicating whether or not to print information useful for debugging. Currently only information useful for debugging calls using MPI is printed. |
examples/example_c.cand when the LMie code is compiled properly the C example program will be compiled as
examples/example_c
HEAD | NEXT |