Skip to content

Commit

Permalink
This program is compatible with both python3 and python2.
Browse files Browse the repository at this point in the history
  • Loading branch information
amanabt committed Feb 2, 2017
1 parent 78a72f2 commit ea93b66
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
build

# Temps
*~
2 changes: 2 additions & 0 deletions gmshtranslator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import print_function

print ("gmshtranslator friendly reminder: rules and actions prototypes\n\n")
print ("def node_condition(tag,x,y,z,physgroups): ")
print ("def node_action(tag,x,y,z):")
Expand Down
3 changes: 2 additions & 1 deletion gmshtranslator/gmshtranslator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import print_function
import scipy as sp
import sys

Expand Down Expand Up @@ -464,4 +465,4 @@ def __error__(self, msg):
# add element # {tag} type 4NodeShell_ANDES with nodes ({n1}, {n2}, {n3}, {n4}) use material # {p1}
# thickness = {p2};
# """
# }
# }

0 comments on commit ea93b66

Please sign in to comment.