OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
src
src
Structure
FieldWriter.h
Go to the documentation of this file.
1
//
2
// Class FieldWriter
3
// This class writes the bunch internal fields on the grid to
4
// file. It supports single core execution only.
5
//
6
// Copyright (c) 2020, Paul Scherrer Institut, Villigen PSI, Switzerland
7
// All rights reserved
8
//
9
// This file is part of OPAL.
10
//
11
// OPAL is free software: you can redistribute it and/or modify
12
// it under the terms of the GNU General Public License as published by
13
// the Free Software Foundation, either version 3 of the License, or
14
// (at your option) any later version.
15
//
16
// You should have received a copy of the GNU General Public License
17
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
18
//
19
#ifndef OPAL_FIELD_WRITER_H
20
#define OPAL_FIELD_WRITER_H
21
22
#include <string>
23
24
class
FieldWriter
25
{
26
public
:
27
29
/*
30
* @param[in] field is the scalar or vector field on the grid
31
* @param[in] name is the field name
32
* @param[in] unit of the field
33
* @param[in] step of the output
34
* @param[in] image of the potential (optional)
35
*/
36
template
<
typename
FieldType>
37
void
dumpField
(FieldType& field, std::string
name
,
38
std::string unit,
long
long
step,
39
FieldType* image =
nullptr
);
40
};
41
42
#include "
FieldWriter.hpp
"
43
44
#endif
FieldWriter.hpp
name
const std::string name
Definition:
MaxNormRadialPeak.cpp:32
FieldWriter
Definition:
FieldWriter.h:25
FieldWriter::dumpField
void dumpField(FieldType &field, std::string name, std::string unit, long long step, FieldType *image=nullptr)
Dump a scalar or vector field to a file.
Definition:
FieldWriter.hpp:30
Generated on Wed Aug 25 2021 16:41:05 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.1