- Timestamp:
- 02/21/18 10:35:16 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/SurfaceLogVelMisfitx/SurfaceLogVelMisfitx.cpp
r18521 r22437 62 62 63 63 /*Retrieve all inputs we will be needing: */ 64 Input* weights_input=topelement->GetInput(InversionCostFunctionsCoefficientsEnum); _assert_(weights_input);64 // Input* weights_input=topelement->GetInput(InversionCostFunctionsCoefficientsEnum); _assert_(weights_input); 65 65 Input* vx_input =topelement->GetInput(VxEnum); _assert_(vx_input); 66 66 Input* vxobs_input =topelement->GetInput(InversionVxObsEnum); _assert_(vxobs_input); … … 82 82 83 83 /*Get all parameters at gaussian point*/ 84 weights_input->GetInputValue(&weight,gauss,SurfaceLogVelMisfitEnum);84 //weights_input->GetInputValue(&weight,gauss,SurfaceLogVelMisfitEnum); 85 85 vx_input->GetInputValue(&vx,gauss); 86 86 vxobs_input->GetInputValue(&vxobs,gauss); … … 106 106 107 107 misfit=4*pow(meanvel,2)*pow(log(velocity_mag/obs_velocity_mag),2); 108 108 weight = 1.; 109 109 /*Add to cost function*/ 110 110 Jelem+=misfit*weight*Jdet*gauss->weight;
Note:
See TracChangeset
for help on using the changeset viewer.