aboutsummaryrefslogtreecommitdiff
path: root/Source/QED/QuantumSyncEngineWrapper.cpp
blob: ce130bb620aaf92e1ba5fb82314adb475f6b5ffb (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
#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();
}

//============================================