ASCOT5
Loading...
Searching...
No Matches
Functions
bbnbi5_main.c File Reference

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.
 

Detailed Description

BBNBI5 main program.

Definition in file bbnbi5_main.c.

Function Documentation

◆ bbnbi_read_arguments()

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.

Parameters
argcargument count as given to main()
argvargument vector as given to main()
simpointer to offload data struct
nprtpointer to integer where number of markers is stored
t1pointer to store beginning of time interval
t2pointer to store end of the time interval
Returns
Zero if success

Definition at line 168 of file bbnbi5_main.c.

◆ main()

int main ( int argc,
char ** argv )

Main function for BBNBI5.

Parameters
argcargument count of the command line arguments
argvargument vector of the command line arguments
Returns
Zero if simulation was completed

Definition at line 42 of file bbnbi5_main.c.