Skip to content

Commit

Permalink
Add Serafin.build_params
Browse files Browse the repository at this point in the history
  • Loading branch information
lucduron committed Apr 11, 2024
1 parent eb055c6 commit 64e8fc8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pyteltools/slf/Serafin.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,20 @@ def _set_file_format_and_precision(self, file_format):
def _set_has_knolg(self):
self.has_knolg = (self.params[7] != 0 or self.params[8] != 0)

def build_params(self):
self.params = (
1,
0,
self.mesh_origin[0],
self.mesh_origin[0],
0,
0,
self.nb_planes,
self.nb_elements,
0,
0 if self.date is None else 1
)

def _build_ikle_2d(self):
if self.is_2d:
self.ikle_2d = self.ikle.reshape(self.nb_elements, self.nb_nodes_per_elem)
Expand Down

0 comments on commit 64e8fc8

Please sign in to comment.