-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathPostProcessor.h
More file actions
executable file
·52 lines (45 loc) · 1.09 KB
/
PostProcessor.h
File metadata and controls
executable file
·52 lines (45 loc) · 1.09 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// This file is a part of nla3d project. For information about authors and
// licensing go to project's repository on github:
// https://github.com/dmitryikh/nla3d
#pragma once
#include "sys.h"
#include "FEStorage.h"
namespace nla3d {
class FEStorage;
class FESolver;
//Data_Processor
class PostProcessor {
public:
PostProcessor(FEStorage *st);
virtual ~PostProcessor() { };
virtual void pre ()=0;
virtual void process (uint16 curLoadstep)=0;
virtual void post (uint16 curLoadstep)=0;
std::string getStatus ();
uint16 getnPost_num () {
return nPost_proc;
}
void setActive (bool act) {
if (failed) {
LOG(WARNING) << "PostProcessor " << nPost_proc << " (" << name << "): can't set active,"
<< "because post_proc has been already failed";
return;
}
active = act;
}
bool getActive () {
return active;
}
uint16 getProc_num () {
return nPost_proc;
}
friend class FEStorage;
friend class FESolver;
protected:
FEStorage *storage;
uint16 nPost_proc;
std::string name;
bool active;
bool failed;
};
} // namespace nla3d