Skip to content

Commit

Permalink
0503
Browse files Browse the repository at this point in the history
  • Loading branch information
tian50 committed May 3, 2021
1 parent 165d751 commit 0011931
Show file tree
Hide file tree
Showing 5 changed files with 267,662 additions and 267,657 deletions.
6 changes: 5 additions & 1 deletion msgpi/ms/prebeam.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,10 +548,14 @@ def preBeam2(fn_beam):
param_name = xe_distribution.find('parameter').text

func_name = xe_distribution.find('function').text
value_type = 'float'
xe_type = xe_distribution.find('type')
if xe_type is not None:
value_type = xe_distribution.find('type').text
m = 1.0
if xe_distribution.find('multiplier'):
m = float(xe_distribution.find('multiplier').text)
beam.distributions[param_name] = [func_name, m]
beam.distributions[param_name] = [func_name, m, value_type]



Expand Down
2 changes: 1 addition & 1 deletion msgpi/sg.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ def writeGmshElements(self, fo, nid_begin=1, eid_begin=1):
elem_type = 2
if len(econnct) == 4:
elem_type = 3
line = [i+eid_begin, elem_type, 2, 1, 1]
line = [i+eid_begin, elem_type, 2, self.elem_prop[eid], self.elem_prop[eid]]
econnct = [nid + nid_begin - 1 for nid in econnct]
line = line + econnct
ioutil.writeFormatIntegers(fo, line)
Expand Down
Loading

0 comments on commit 0011931

Please sign in to comment.