Ignore:
Timestamp:
02/21/18 10:35:16 (7 years ago)
Author:
erobo
Message:

ADD: allows AD to be used with m1qn3 core, not compliled in now (dead code)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/SurfaceLogVelMisfitx/SurfaceLogVelMisfitx.cpp

    r18521 r22437  
    6262
    6363        /*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);
    6565        Input* vx_input     =topelement->GetInput(VxEnum);                                 _assert_(vx_input);
    6666        Input* vxobs_input  =topelement->GetInput(InversionVxObsEnum);                     _assert_(vxobs_input);
     
    8282
    8383                /*Get all parameters at gaussian point*/
    84                 weights_input->GetInputValue(&weight,gauss,SurfaceLogVelMisfitEnum);
     84                //weights_input->GetInputValue(&weight,gauss,SurfaceLogVelMisfitEnum);
    8585                vx_input->GetInputValue(&vx,gauss);
    8686                vxobs_input->GetInputValue(&vxobs,gauss);
     
    106106
    107107                misfit=4*pow(meanvel,2)*pow(log(velocity_mag/obs_velocity_mag),2);
    108 
     108                weight = 1.;
    109109                /*Add to cost function*/
    110110                Jelem+=misfit*weight*Jdet*gauss->weight;
Note: See TracChangeset for help on using the changeset viewer.