Changeset 26475


Ignore:
Timestamp:
10/12/21 10:15:42 (3 years ago)
Author:
Cheng Gong
Message:

BUG: the coefficient of SurfaceAverageVelMisfit in PVector is 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/AdjointHorizAnalysis.cpp

    r26468 r26475  
    510510                                        for(i=0;i<vnumnodes;i++){
    511511                                                if (domaintype!=Domain2DverticalEnum){
    512                                                         scale=1./(S*2*sqrt(pow(vx-vxobs,2)+pow(vy-vyobs,2))+epsvel);
     512                                                        scale=1./(S*sqrt(pow(vx-vxobs,2)+pow(vy-vyobs,2))+epsvel);
    513513                                                        dux=scale*(vxobs-vx);
    514514                                                        duy=scale*(vyobs-vy);
     
    517517                                                }
    518518                                                else{
    519                                                         scale=1./(S*2*fabs(vx-vxobs)+epsvel);
     519                                                        scale=1./(S*fabs(vx-vxobs)+epsvel);
    520520                                                        dux=scale*(vxobs-vx);
    521521                                                        pe->values[i*2+0]+=dux*weight*Jdet*gauss->weight*vbasis[i];
     
    746746                                        for(i=0;i<numnodes;i++){
    747747                                                if(domaintype!=Domain2DverticalEnum){
    748                                                         scale=1./(S*2*sqrt(pow(vx-vxobs,2)+pow(vy-vyobs,2))+epsvel);
     748                                                        scale=1./(S*sqrt(pow(vx-vxobs,2)+pow(vy-vyobs,2))+epsvel);
    749749                                                        dux=scale*(vxobs-vx);
    750750                                                        duy=scale*(vyobs-vy);
     
    998998                                        for(i=0;i<numnodes;i++){
    999999                                                if(domaintype!=Domain2DverticalEnum){
    1000                                                         scale=1./(S*2*sqrt(pow(vx-vxobs,2)+pow(vy-vyobs,2))+epsvel);
     1000                                                        scale=1./(S*sqrt(pow(vx-vxobs,2)+pow(vy-vyobs,2))+epsvel);
    10011001                                                        dux=scale*(vxobs-vx);
    10021002                                                        duy=scale*(vyobs-vy);
     
    10051005                                                }
    10061006                                                else{
    1007                                                         scale=1./(S*2*fabs(vx-vxobs)+epsvel);
     1007                                                        scale=1./(S*fabs(vx-vxobs)+epsvel);
    10081008                                                        dux=scale*(vxobs-vx);
    10091009                                                        pe->values[i]+=dux*weight*Jdet*gauss->weight*basis[i];
Note: See TracChangeset for help on using the changeset viewer.