ValueError: SolverOptionsException

Asked by Meng Qing Xiang

Hi, I have a problem in using escript. It work fine when I first use the program about several month ago. However when I use this program today, it gives:
/usr/local/lib/python2.7/dist-packages/IPython/terminal/ipapp.py:245: DeprecationWarning: metadata {'config': True} was set from the constructor. Metadata should be set using the .tag() method, e.g., Int().tag(key1='value1', key2='value2')
  help="""Start IPython quickly by skipping the loading of config files."""
/usr/local/lib/python2.7/dist-packages/IPython/terminal/ipapp.py:252: DeprecationWarning: metadata {'config': True} was set from the constructor. Metadata should be set using the .tag() method, e.g., Int().tag(key1='value1', key2='value2')
  help="Whether to display a banner upon starting IPython."
/usr/local/lib/python2.7/dist-packages/IPython/terminal/ipapp.py:260: DeprecationWarning: metadata {'config': True} was set from the constructor. Metadata should be set using the .tag() method, e.g., Int().tag(key1='value1', key2='value2')
  file or command."""
Traceback (most recent call last):
  File "biaxialSmooth.py", line 24, in <module>
    prob = MultiScale(domain=mydomain,ng=numg,np=nump,random=False,rtol=1e-2,usePert=False,pert=-2.e-5,verbose=True)
  File "/home/mqx/yade/msFEM2D.py", line 67, in __init__
    self.__pde.getSolverOptions().setSolverMethod(SolverOptions.DIRECT)
ValueError: SolverOptionsException: Cannot use DIRECT solver method, the running escript was not compiled with a direct solver enabled

I am really thanks if who can give me some advice.

Besdt wishes
Qingxiang

Question information

Language:
English Edit question
Status:
Solved
For:
esys-escript Edit question
Assignee:
No assignee Edit question
Solved by:
Meng Qing Xiang
Solved:
Last query:
Last reply:
Revision history for this message
Meng Qing Xiang (642229461-k) said :
#1

I have solved this problem. Just modify the umfpack option in the trusty_options.py.

Revision history for this message
hanzj (hanzj14) said :
#2

hello,
I just came across the similar problems with you.
ValueError: SolverOptionsException: Cannot use DIRECT solver method, the running escript was not compiled with a direct solver enabled.
can you tell me how to modify the umfpack in detail?
thanks
looking forward for your reply

Revision history for this message
Joel Fenwick (j-fenwick1) said :
#3

Appologies for taking so long on this.

You will need to find the options file you are using to compile. For example (as Meng Qing Xiang suggested above)

scons/templates/trusty_options.py

Find the line which says:

umfpack =

And make sure that it says

umfpack = True

If you can't find the line at all, you can add it to the file.

Note that switching this on means that you will need to have umfpack installed.
On Debian/Ubuntu systems, I think this will be in the libsuitesparse-dev package.

Revision history for this message
Meng Qing Xiang (642229461-k) said :
#4

Just see you problem, I am fighting my PhD Thesis recently and very sorry.

I think Joel Fenwick have give a more detail answer for this problem.

Best wishes,