source: issm/trunk/src/py3/solvers/issmmumpssolver.py@ 20500

Last change on this file since 20500 was 20500, checked in by Mathieu Morlighem, 9 years ago

merged trunk-jpl and trunk for revision 20497

File size: 743 bytes
Line 
1import pairoptions
2
3def issmmumpssolver(**kwargs):
4 #ISSMSOLVE - return issm solver options
5 #
6 # Usage:
7 # options=issmsolver;
8
9 #retrieve options provided in varargin
10 arguments=pairoptions.pairoptions(**kwargs)
11
12 options=[['toolkit','issm'],['mat_type','mpidense'],['vec_type','mpi'],['solver_type','mumps']];
13
14 #now, go through our arguments, and write over default options.
15 for i in range(len(arguments.list)):
16 arg1=arguments.list[i][0]
17 arg2=arguments.list[i][1]
18 found=0;
19 for j in range(len(options)):
20 joption=options[j][0]
21 if joption==arg1:
22 joption[1]=arg2;
23 options[j]=joption;
24 found=1;
25 break
26 if not found:
27 #this option did not exist, add it:
28 options.append([arg1,arg2])
29 return options
Note: See TracBrowser for help on using the repository browser.