suanPan
🧮 An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
Loading...
Searching...
No Matches
GlobalRecorder.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2026 Theodore Chang
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 ******************************************************************************/
29#ifndef GLOBALRECORDER_H
30#define GLOBALRECORDER_H
31
32#include <Recorder/Recorder.h>
33
34class GlobalRecorder : public Recorder {
35protected:
36 static void assemble_matrix(const mat&, const uvec&, mat&);
37
38 void record_impl(const shared_ptr<DomainBase>&) override;
39
40public:
42 unsigned, // tag
43 OutputType, // recorder type
44 unsigned, // interval
45 bool // if to use hdf5
46 );
47
48 void print() override;
49};
50
52 void record_impl(const shared_ptr<DomainBase>&) override;
53
54public:
56 unsigned, // tag
57 unsigned, // interval
58 bool // if to use hdf5
59 );
60
61 void print() override;
62};
63
64class GlobalMassRecorder final : public GlobalRecorder {
65 void record_impl(const shared_ptr<DomainBase>&) override;
66
67public:
69 unsigned, // tag
70 unsigned, // interval
71 bool // if to use hdf5
72 );
73
74 void print() override;
75};
76
77#endif
78
OutputType
Definition OutputType.h:23
Definition GlobalRecorder.h:64
void print() override
Definition GlobalRecorder.cpp:112
A GlobalRecorder class.
Definition GlobalRecorder.h:34
static void assemble_matrix(const mat &, const uvec &, mat &)
Definition GlobalRecorder.cpp:24
void record_impl(const shared_ptr< DomainBase > &) override
Definition GlobalRecorder.cpp:31
void print() override
Definition GlobalRecorder.cpp:60
Definition GlobalRecorder.h:51
void print() override
Definition GlobalRecorder.cpp:86
A Recorder class.
Definition Recorder.h:35