OPALX (Object Oriented Parallel Accelerator Library for Exascal)
master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
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
public
:
27
/*
28
* @param[in] field is the scalar or vector field on the grid
29
* @param[in] name is the field name
30
* @param[in] unit of the field
31
* @param[in] step of the output
32
* @param[in] image of the potential (optional)
33
*/
34
template
<
typename
FieldType>
35
void
dumpField
(
36
FieldType& field, std::string name, std::string unit,
long
long
step,
37
FieldType* image =
nullptr
);
38
};
39
40
#include "
FieldWriter.hpp
"
41
42
#endif
FieldWriter.hpp
FieldWriter
Definition
FieldWriter.h:24
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:29
src
Structure
FieldWriter.h
Generated on Mon Jun 1 2026 10:40:53 for OPALX (Object Oriented Parallel Accelerator Library for Exascal) by
1.9.8