source: issm/trunk/src/m/inversions/marshallcostfunctions.js

Last change on this file was 21341, checked in by Mathieu Morlighem, 8 years ago

merged trunk-jpl and trunk for revision 21337

File size: 975 bytes
Line 
1function marshallcostfunctions(cost_functions){
2 for(var i=0;i<cost_functions.length;i++){
3 if(cost_functions[i]==101) data[i]='SurfaceAbsVelMisfit';
4 if(cost_functions[i]==102) data[i]='SurfaceRelVelMisfit';
5 if(cost_functions[i]==103) data[i]='SurfaceLogVelMisfit';
6 if(cost_functions[i]==104) data[i]='SurfaceLogVxVyMisfit';
7 if(cost_functions[i]==105) data[i]='SurfaceAverageVelMisfit';
8 if(cost_functions[i]==201) data[i]='ThicknessAbsMisfit';
9 if(cost_functions[i]==501) data[i]='DragCoefficientAbsGradient';
10 if(cost_functions[i]==502) data[i]='RheologyBbarAbsGradient';
11 if(cost_functions[i]==503) data[i]='ThicknessAbsGradient';
12 if(cost_functions[i]==504) data[i]='ThicknessAlongGradient';
13 if(cost_functions[i]==505) data[i]='ThicknessAcrossGradient';
14 if(cost_functions[i]==506) data[i]='BalancethicknessMisfit';
15 if(cost_functions[i]==507) data[i]='RheologyBAbsGradient';
16 if(cost_functions[i]==601) data[i]='SurfaceAbsMisfit';
17 }
18 return data;
19}
Note: See TracBrowser for help on using the repository browser.