blob: 4aa1f7fbd745119f4983f46d99bc8bb0f356a035 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* Copyright 2021 Hannah Klion
*
*
* This file is part of WarpX.
*
* License: BSD-3-Clause-LBNL
*/
#include "GetTemperature.H"
GetTemperature::GetTemperature (TemperatureProperties const& temp) noexcept {
m_type = temp.m_type;
if (m_type == TempConstantValue) {
m_temperature = temp.m_temperature;
}
else if (m_type == TempParserFunction) {
m_temperature_parser = temp.m_ptr_temperature_parser->compile<3>();
}
}
|