Changeset 18587
- Timestamp:
- 10/07/14 14:43:39 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/contrib/gravity/vfsa_mpi.cpp
r18550 r18587 150 150 /* Define the variables {{{*/ 151 151 152 int dx = 500; /* prism dimension in x-direction */153 int dy = 500; /* prism dimension in y-direction */154 int mx = 39; /* number of prisms in x-direction */155 int my = 60; /* number of prisms in y-direction */156 int nx = 39; /* number of data points in x-direction */157 int ny = 60; /* number of data points in y-direction */152 int dx = 1000; /* prism dimension in x-direction */ 153 int dy = 1000; /* prism dimension in y-direction */ 154 int mx = 99; /* number of prisms in x-direction */ 155 int my = 99; /* number of prisms in y-direction */ 156 int nx = 99; /* number of data points in x-direction */ 157 int ny = 99; /* number of data points in y-direction */ 158 158 int dn = 15000; /* distance for neighbouting prisms for gravity calculation */ 159 159 double ptval = 100.; /* max. amount to perturb model */ … … 169 169 // Pp->Echo(); 170 170 171 double rhoi = 890; /* ice density */171 double rhoi = 917; /* ice density */ 172 172 double rhow = 1030; /* water density */ 173 173 // double rhos = 2013; /* sediment density */ … … 185 185 rho2->SetValue(0,1,rhow-rhoc); 186 186 187 double dlevel= 860; /* level of data acquisition */187 double dlevel=2400; /* level of data acquisition */ 188 188 189 189 double ctr=1; /* parameter for filtering */ 190 double sd=0. 5;190 double sd=0.1; 191 191 192 192 Matrix *xobs= new Matrix(ny,nx); … … 198 198 199 199 200 double mmax = 1000; /* max value for layer interfaces */201 double mmax2 = 1000;202 double mmax3 = 1000;200 double mmax = 2000; /* max value for layer interfaces */ 201 double mmax2 = 2000; 202 double mmax3 = 2000; 203 203 204 204 /* control parameter for temperature schedule */ … … 226 226 /*landmask */ 227 227 228 ifstream file("landmask .txt");228 ifstream file("landmaskzach.txt"); 229 229 Matrix * landmask= new Matrix(nx*ny,1); 230 230 double inputnumber; … … 237 237 /* Observed gravity anomaly */ 238 238 239 ifstream file1(" store_fa500_36s.txt");239 ifstream file1("gravityzach.txt"); 240 240 Matrix * gobs= new Matrix(nx*ny,1); 241 241 for(int i=0;i<ny*nx; i++){ … … 248 248 /* load data about the ice thickness */ 249 249 250 ifstream file2(" store_flag_icethick500.txt");250 ifstream file2("icethickzach.txt"); 251 251 Matrix * icethick= new Matrix(mx*my,1); 252 252 for(int s=0;s<mx*my; s++){ … … 259 259 /* load the batimethry data */ 260 260 261 ifstream file3(" store_flag_bathy500.txt");261 ifstream file3("bathymetryzach.txt"); 262 262 Matrix * bathy= new Matrix(mx*my,1); 263 263 for(int s=0;s<mx*my; s++){ … … 271 271 272 272 273 ifstream file4(" store_flag_eval500.txt");273 ifstream file4("evalidzach.txt"); 274 274 Matrix * evalid= new Matrix(nx*ny,1); 275 275 for(int s=0;s<nx*ny; s++){ … … 282 282 /* initial guess of the model */ 283 283 284 ifstream file5("m0_ 140114b.txt");284 ifstream file5("m0_092614zach.txt"); 285 285 Matrix * mesh_ini= new Matrix(mx*my,3); 286 286 for(int s=0;s<mx*my; s++){ … … 296 296 297 297 /* name of the files to save results */ 298 std::ofstream savefile1 ("r_ 140114b.txt");299 std::ofstream savefile2("m_ 140114b.txt");298 std::ofstream savefile1 ("r_zach.txt"); 299 std::ofstream savefile2("m_zach.txt"); 300 300 301 301 /* counters initialization */
Note:
See TracChangeset
for help on using the changeset viewer.