Peano
Loading...
Searching...
No Matches
StepToObserver.py
Go to the documentation of this file.
1# This file is part of the Peano project. For conditions of distribution and
2# use, please see the copyright notice at www.peano-framework.org
4
5
6class StepToObserver(object):
7 def __init__(self,step):
8 self.step = step
9
10
11 def construct_output(self,output,included_action_sets):
12 """
13 Construct one mapping
14 """
15 observer = peano4.output.Observer(
16 self.step.name, self.step.project.namespace + [ "observers" ], self.step.project.subdirectory + "observers",
17 included_action_sets,
18 self.step.vertex_data,
19 self.step.face_data,
20 self.step.cell_data
21 )
22 output.artefacts.append( observer )
23 output.makefile.add_cpp_file( observer.get_cpp_file_name(), generated=True )
construct_output(self, output, included_action_sets)
Construct one mapping.