You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using specfem2d on my previous OS (Ubuntu 20.04). After upgrading to Ubuntu 22.4, when I run the "cubit2specfem2d.py" script to get the necessary files in specfem2d format, I get the following error:
(Non-Commercial License) Cubit>
Traceback (most recent call last):
File "", line 750, in
File "", line 3, in export2SPECFEM2D
NameError: name 'mesh' is not defined
Rolled back to the previous os version, and I am still getting the same error.
Thank you!
The text was updated successfully, but these errors were encountered:
I'm going to close this because I solved it. But I only ran a homogeneous media and the "paper_axisymmetry_example" simulations using Cubit! They both work fine.
Solution steps:
(1) you don't need the "sets" module for calling the "set" function in python anymore. Comment all the from sets import Set lines.
(2) Also, in line 257 of the script, switch the"mesh_tools" and "object". So, it should be class mesh(mesh_tools,object):
Hi all,
I was using specfem2d on my previous OS (Ubuntu 20.04). After upgrading to Ubuntu 22.4, when I run the "cubit2specfem2d.py" script to get the necessary files in specfem2d format, I get the following error:
(Non-Commercial License) Cubit>
Traceback (most recent call last):
File "", line 750, in
File "", line 3, in export2SPECFEM2D
NameError: name 'mesh' is not defined
Rolled back to the previous os version, and I am still getting the same error.
Thank you!
The text was updated successfully, but these errors were encountered: