Skip to content

Commit

Permalink
address failing lininteg_ext.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sshiraiwa committed Feb 2, 2024
1 parent dde3e01 commit 2d54589
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mfem/common/generate_lininteg_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@
for line in fid.readlines():
if line.startswith("class"):
cname = (line.split(' ')[1]).split('(')[0]

if line.startswith(" def __init__"):
pp = ""
if line.find("*args") != -1:
pp = " self._coeff = args"
elif line.find("self, seed_=0") != -1:
pp = " self._coeff = QG"
elif line.find("self, vqfc, ir") != -1:
pp = " self._coeff = (vqfc, ir)"
elif line.find("self, qfc, ir") != -1:
pp = " self._coeff = (qfc, ir)"
elif line.find(", QG") != -1:
pp = " self._coeff = QG"
elif line.find(", QF)") != -1:
Expand Down

0 comments on commit 2d54589

Please sign in to comment.