Changeset 9600
- Timestamp:
- 09/02/11 17:33:03 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Tria.cpp
r9597 r9600 1512 1512 double dux,duy; 1513 1513 double epsvel=2.220446049250313e-16; 1514 double meanvel= 1000/(365*24*3600); /*1000 m/yr*/1514 double meanvel=3.170979198376458e-05; /*1000 m/yr*/ 1515 1515 double scalex=0,scaley=0,scale=0,S=0; 1516 1516 double vx,vy,vxobs,vyobs,weight; … … 1614 1614 velocity_mag =sqrt(pow(vx, 2.)+pow(vy, 2.))+epsvel; 1615 1615 obs_velocity_mag=sqrt(pow(vxobs,2.)+pow(vyobs,2.))+epsvel; 1616 printf("-------------- file: Tria.cpp line: %i\n",__LINE__); 1617 printf("%g %g\n",velocity_mag,obs_velocity_mag); 1616 1618 scale=-8*pow(meanvel,2.)/pow(velocity_mag,2.)*log(velocity_mag/obs_velocity_mag); 1619 printf("%g\n",meanvel); 1617 1620 dux=scale*vx; 1618 1621 duy=scale*vy; 1622 printf("%g %g %g\n",vx,vy,scale); 1619 1623 pe->values[i*NDOF2+0]+=dux*weight*Jdet*gauss->weight*basis[i]; 1620 1624 pe->values[i*NDOF2+1]+=duy*weight*Jdet*gauss->weight*basis[i]; … … 1688 1692 double dux,duy; 1689 1693 double epsvel=2.220446049250313e-16; 1690 double meanvel= 1000/(365*24*3600); /*1000 m/yr*/1694 double meanvel=3.170979198376458e-05; /*1000 m/yr*/ 1691 1695 double scalex=0,scaley=0,scale=0,S=0; 1692 1696 double vx,vy,vxobs,vyobs,weight; … … 4858 4862 double misfit,Jdet; 4859 4863 double epsvel=2.220446049250313e-16; 4860 double meanvel= 1000/(365*24*3600); /*1000 m/yr*/4864 double meanvel=3.170979198376458e-05; /*1000 m/yr*/ 4861 4865 double velocity_mag,obs_velocity_mag; 4862 4866 double xyz_list[NUMVERTICES][3]; … … 4923 4927 double Jelem=0, S=0; 4924 4928 double epsvel=2.220446049250313e-16; 4925 double meanvel= 1000/(365*24*3600); /*1000 m/yr*/4929 double meanvel=3.170979198376458e-05; /*1000 m/yr*/ 4926 4930 double misfit, Jdet; 4927 4931 double vx,vy,vxobs,vyobs,weight; … … 5013 5017 double misfit,Jdet; 5014 5018 double epsvel=2.220446049250313e-16; 5015 double meanvel= 1000/(365*24*3600); /*1000 m/yr*/5019 double meanvel=3.170979198376458e-05; /*1000 m/yr*/ 5016 5020 double vx,vy,vxobs,vyobs,weight; 5017 5021 double xyz_list[NUMVERTICES][3];
Note:
See TracChangeset
for help on using the changeset viewer.