Changeset 18439
- Timestamp:
- 08/19/14 08:53:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/contrib/gravity/vfsa.cpp
r18435 r18439 133 133 double signe(double a); 134 134 void filtergrav(Matrix* A,Matrix* Ain,double ctr,double sd,int mx,int my); 135 void newmodelgen(Matrix* m0,Matrix* m1,Matrix* bathy,Matrix* icethick,int mx,int my,double T,double ptval,double mmax,double mmax2,double ctr,double sd); 135 136 /*}}}*/ 136 137 … … 259 260 /*}}}*/ 260 261 double q=0; 261 q=misfit(mesh_ini,evalid,gobs,dlevel,Pobs,xobs,yobs,Pp,rho1,rho2,dx,dy,dn,nx,ny,mx,my);262 /* q=misfit(mesh_ini,evalid,gobs,dlevel,Pobs,xobs,yobs,Pp,rho1,rho2,dx,dy,dn,nx,ny,mx,my); 262 263 cout<< q; 263 /*Matrix* G=new Matrix(4,3);264 Matrix* G=new Matrix(4,3); 264 265 Matrix* df=new Matrix(4,1); 265 266 Matrix* o=new Matrix(4,1); … … 283 284 M->Echo(); 284 285 o->Echo();*/ 285 double a;286 a=signe(-9);287 cout<<a;286 Matrix* m1=new Matrix(mx*my,3); 287 double T=100; 288 newmodelgen(mesh_ini,m1,bathy,icethick,mx,my,T,ptval,mmax,mmax2,ctr,sd); 288 289 return 0; 289 290 }/*}}}*/ … … 517 518 m1->ExtractColumn(m1col,1); 518 519 vec2gridsimple(m1col,m1gr,mx,my); 520 cout<<endl<<endl; 519 521 filtergrav(m1grsm,m1gr,ctr,sd,mx,my); 520 522 reshape(m1grsm,m1col,mx,my); … … 568 570 }/*}}}*/ 569 571 void filtergrav(Matrix* A,Matrix* Ain,double ctr,double sd,int mx,int my){/*{{{*/ 572 A->MatrixEqual(Ain); 570 573 for (int i=1;i<my-1;i++){ 571 574 for(int j=1;j<mx-1;j++){
Note:
See TracChangeset
for help on using the changeset viewer.