source: issm/trunk/src/m/inversions/marshallcostfunctions.js@ 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: 1.0 KB
Line 
1function marshallcostfunctions(cost_functions){
2 for(var i=0;i<cost_functions.length;i++){
3 if(cost_functions[i]==101) data[i]=SurfaceAbsVelMisfitEnum();
4 if(cost_functions[i]==102) data[i]=SurfaceRelVelMisfitEnum();
5 if(cost_functions[i]==103) data[i]=SurfaceLogVelMisfitEnum();
6 if(cost_functions[i]==104) data[i]=SurfaceLogVxVyMisfitEnum();
7 if(cost_functions[i]==105) data[i]=SurfaceAverageVelMisfitEnum();
8 if(cost_functions[i]==201) data[i]=ThicknessAbsMisfitEnum();
9 if(cost_functions[i]==501) data[i]=DragCoefficientAbsGradientEnum();
10 if(cost_functions[i]==502) data[i]=RheologyBbarAbsGradientEnum();
11 if(cost_functions[i]==503) data[i]=ThicknessAbsGradientEnum();
12 if(cost_functions[i]==504) data[i]=ThicknessAlongGradientEnum();
13 if(cost_functions[i]==505) data[i]=ThicknessAcrossGradientEnum();
14 if(cost_functions[i]==506) data[i]=BalancethicknessMisfitEnum();
15 if(cost_functions[i]==507) data[i]=RheologyBAbsGradientEnum();
16 if(cost_functions[i]==601) data[i]=SurfaceAbsMisfitEnum();
17 }
18 return data;
19}
Note: See TracBrowser for help on using the repository browser.