blob: 0eb000174e573860b3b69b1e90248d57156013da (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#include "QuantumSyncEngineWrapper.h"
//This file provides a wrapper aroud the quantum_sync engine
//provided by the PICSAR library
using namespace picsar::multi_physics;
// Functors ==================================
// Initialization of the optical depth
AMREX_GPU_DEVICE
amrex::Real
QuantumSynchrotronGetOpticalDepth::operator() () const
{
return WarpXQuantumSynchrotronWrapper::
internal_get_optical_depth(amrex::Random());
}
//____________________________________________
// Factory class =============================
QuantumSynchrotronEngine::QuantumSynchrotronEngine (){}
QuantumSynchrotronGetOpticalDepth
QuantumSynchrotronEngine::build_optical_depth_functor ()
{
return QuantumSynchrotronGetOpticalDepth();
}
//============================================
|