made exception in case of non-working f2py code (core.so) again verbose

This commit is contained in:
Martin Diehl 2012-10-10 16:38:02 +00:00
parent 28033053b9
commit 398643a3b1
1 changed files with 2 additions and 2 deletions

View File

@ -42,8 +42,8 @@ try:
#core.mesh.nodesAroundCentroids = core.mesh.mesh_spectral_nodesAroundCentroids #core.mesh.nodesAroundCentroids = core.mesh.mesh_spectral_nodesAroundCentroids
#core.mesh.deformedCoordsLin = core.mesh.mesh_deformedCoordsLin #core.mesh.deformedCoordsLin = core.mesh.mesh_deformedCoordsLin
#core.mesh.deformedCoordsFFT = core.mesh.mesh_deformedCoordsFFT #core.mesh.deformedCoordsFFT = core.mesh.mesh_deformedCoordsFFT
except ImportError: except ImportError, e:
sys.stderr.write('\nWARNING: Core module (Fortran code) not available, try to run setup_processing.py\nError Message when importing core.so: \n\n') sys.stderr.write('\nWARNING: Core module (Fortran code) not available, try to run setup_processing.py\nError Message when importing core.so: %s\n\n'%e)
core = None # from http://www.python.org/dev/peps/pep-0008/ core = None # from http://www.python.org/dev/peps/pep-0008/