mikaem / tools

Some tools for working with Nek5000, FEniCS or semtex
6 stars 9 forks source link

Usage Issues #2

Open XXXXThomas opened 6 years ago

XXXXThomas commented 6 years ago

Running the functions like process below:

xthomas:~/Nek5000/tools/tools-master/mshconvert$ ipython Python 2.7.12 (default, Nov 20 2017, 18:23:56) Type "copyright", "credits" or "license" for more information.

IPython 2.4.1 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.

In [1]: File "", line 1 ^ SyntaxError: invalid syntax

In [2]: convert('sirkel4.msh', curves={7:{'type':'C', 'radius':1, 'depth': 4, 'circle_center': (0, 0)}})

NameError Traceback (most recent call last)

in () ----> 1 convert('sirkel4.msh', curves={7:{'type':'C', 'radius':1, 'depth': 4, 'circle_center': (0, 0)}}) NameError: name 'convert' is not defined In [3]: Any suggestions to fix the problem? many thx.
vivashchenko commented 6 years ago

The first In[1] should be "from mshconvert import *"