ASCOT5
|
BBNBI5 main program. More...
#include <getopt.h>
#include <math.h>
#include <omp.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "ascot5.h"
#include "gitver.h"
#include "hdf5_interface.h"
#include "hdf5io/hdf5_helpers.h"
#include "print.h"
#include "simulate.h"
#include "particle.h"
#include "B_field.h"
#include "plasma.h"
#include "neutral.h"
#include "wall.h"
#include "asigma.h"
#include "nbi.h"
#include "diag.h"
#include "bbnbi5.h"
Go to the source code of this file.
Functions | |
int | bbnbi_read_arguments (int argc, char **argv, sim_offload_data *sim, int *nprt, real *t1, real *t2) |
Read command line arguments. | |
int | main (int argc, char **argv) |
Main function for BBNBI5. | |
BBNBI5 main program.
Definition in file bbnbi5_main.c.
int bbnbi_read_arguments | ( | int | argc, |
char ** | argv, | ||
sim_offload_data * | sim, | ||
int * | nprt, | ||
real * | t1, | ||
real * | t2 ) |
Read command line arguments.
Read in command line arguments, input and output names and mpi parameters are stored in sim structure as with ascot5, number of markers is passed as an argument.
If the arguments could not be parsed, this function returns a non-zero exit value.
argc | argument count as given to main() |
argv | argument vector as given to main() |
sim | pointer to offload data struct |
nprt | pointer to integer where number of markers is stored |
t1 | pointer to store beginning of time interval |
t2 | pointer to store end of the time interval |
Definition at line 168 of file bbnbi5_main.c.
int main | ( | int | argc, |
char ** | argv ) |
Main function for BBNBI5.
argc | argument count of the command line arguments |
argv | argument vector of the command line arguments |
Definition at line 42 of file bbnbi5_main.c.