ASCOT5
Loading...
Searching...
No Matches
mccc_wiener.h
Go to the documentation of this file.
1
5#ifndef MCCC_WIENER_H
6#define MCCC_WIENER_H
7
8#include "../../ascot5.h"
9#include "../../error.h"
10
15#define MCCC_NDIM 5
16
21#define MCCC_NSLOTS WIENERSLOTS
22
28typedef struct {
29 int nextslot[MCCC_NSLOTS];
38
39DECLARE_TARGET_SIMD
41DECLARE_TARGET_SIMD
42a5err mccc_wiener_generate(mccc_wienarr* w, real t, int* windex, real* rand5);
43DECLARE_TARGET_SIMD
45
46#endif
Main header file for ASCOT5.
double real
Definition ascot5.h:85
Error module for ASCOT5.
unsigned long int a5err
Simulation error flag.
Definition error.h:17
DECLARE_TARGET_SIMD void mccc_wiener_initialize(mccc_wienarr *w, real initime)
Initializes a struct that stores generated Wiener processes.
Definition mccc_wiener.c:36
DECLARE_TARGET_SIMD a5err mccc_wiener_clean(mccc_wienarr *w, real t)
Removes Wiener processes from the array that are no longer required.
#define MCCC_NSLOTS
Definition mccc_wiener.h:21
#define MCCC_NDIM
Definition mccc_wiener.h:15
DECLARE_TARGET_SIMD a5err mccc_wiener_generate(mccc_wienarr *w, real t, int *windex, real *rand5)
Generates a new Wiener process at a given time instant.
Definition mccc_wiener.c:66
Struct for storing Wiener processes.
Definition mccc_wiener.h:28