mmc_host.h
Go to the documentation of this file.
1 /***************************************************************************/
32 /***************************************************************************/
38 #ifndef _MMC_HOSTCODE_H
39 #define _MMC_HOSTCODE_H
40 
41 #include "mmc_mesh.h"
42 #include "mmc_raytrace.h"
43 #include "mmc_utils.h"
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
49 int mmc_init_from_cmd(mcconfig* cfg, tetmesh* mesh, raytracer* tracer, int argc, char** argv);
50 int mmc_init_from_json(mcconfig* cfg, tetmesh* mesh, raytracer* tracer, char* jcfg, char* jmesh);
51 int mmc_reset(mcconfig* cfg, tetmesh* mesh, raytracer* tracer);
52 int mmc_cleanup(mcconfig* cfg, tetmesh* mesh, raytracer* tracer);
53 int mmc_prep(mcconfig* cfg, tetmesh* mesh, raytracer* tracer);
54 int mmc_run_mp(mcconfig* cfg, tetmesh* mesh, raytracer* tracer);
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif
This structure defines the problem settings (domain, filenames, session)
Definition: mmc_utils.h:184
int mmc_cleanup(mcconfig *cfg, tetmesh *mesh, raytracer *tracer)
Clear simulation related data structures.
Definition: mmc_host.c:120
Definition of the core ray-tracing functions.
int mmc_reset(mcconfig *cfg, tetmesh *mesh, raytracer *tracer)
Rest simulation related data structures.
Definition: mmc_host.c:105
Basic FEM mesh data structrure.
Definition: mmc_mesh.h:90
Definition of program options and problem domain configurations.
int mmc_prep(mcconfig *cfg, tetmesh *mesh, raytracer *tracer)
Peprocessing simulation settings and data for simulation.
Definition: mmc_host.c:135
int mmc_init_from_json(mcconfig *cfg, tetmesh *mesh, raytracer *tracer, char *jcfg, char *jmesh)
Initialize simulation configuration structure cfg using a JSON input file.
Definition: mmc_host.c:87
Definition of basic mesh data structures and inline vector operations.
int mmc_init_from_cmd(mcconfig *cfg, tetmesh *mesh, raytracer *tracer, int argc, char **argv)
Initialize simulation configuration structure cfg using command line options.
Definition: mmc_host.c:66
Ray-tracer data structrure for pre-computed data.
Definition: mmc_mesh.h:128
int mmc_run_mp(mcconfig *cfg, tetmesh *mesh, raytracer *tracer)
Main function to launch CPU based MMC photon simulation.
Definition: mmc_host.c:153