Changeset 18587


Ignore:
Timestamp:
10/07/14 14:43:39 (10 years ago)
Author:
abuzzi
Message:

CNG: slightly modified for better performance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/contrib/gravity/vfsa_mpi.cpp

    r18550 r18587  
    150150        /* Define the variables {{{*/
    151151
    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                     */
    158158        int    dn     = 15000; /* distance for neighbouting prisms for gravity calculation */
    159159        double ptval  = 100.;  /* max. amount to perturb model                             */
     
    169169        // Pp->Echo();
    170170
    171         double  rhoi = 890;           /* ice density     */
     171        double  rhoi = 917;           /* ice density     */
    172172        double  rhow = 1030;          /* water density   */
    173173        // double  rhos = 2013;               /* sediment density */
     
    185185        rho2->SetValue(0,1,rhow-rhoc);
    186186
    187         double dlevel=860;         /* level of data acquisition */
     187        double dlevel=2400;         /* level of data acquisition */
    188188
    189189        double ctr=1;            /* parameter for filtering */
    190         double sd=0.5;
     190        double sd=0.1;
    191191
    192192        Matrix *xobs= new Matrix(ny,nx);
     
    198198
    199199
    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;
    203203
    204204        /* control parameter for temperature schedule  */
     
    226226        /*landmask */
    227227
    228         ifstream file("landmask.txt");
     228        ifstream file("landmaskzach.txt");
    229229        Matrix * landmask= new Matrix(nx*ny,1);
    230230        double inputnumber;
     
    237237        /* Observed gravity anomaly */
    238238
    239         ifstream file1("store_fa500_36s.txt");
     239        ifstream file1("gravityzach.txt");
    240240        Matrix * gobs= new Matrix(nx*ny,1);
    241241        for(int i=0;i<ny*nx; i++){
     
    248248        /* load data about the ice thickness */
    249249
    250         ifstream file2("store_flag_icethick500.txt");
     250        ifstream file2("icethickzach.txt");
    251251        Matrix * icethick= new Matrix(mx*my,1);
    252252        for(int s=0;s<mx*my; s++){
     
    259259        /* load the batimethry data */
    260260
    261         ifstream file3("store_flag_bathy500.txt");
     261        ifstream file3("bathymetryzach.txt");
    262262        Matrix * bathy= new Matrix(mx*my,1);
    263263        for(int s=0;s<mx*my; s++){
     
    271271
    272272
    273         ifstream file4("store_flag_eval500.txt");
     273        ifstream file4("evalidzach.txt");
    274274        Matrix * evalid= new Matrix(nx*ny,1);
    275275        for(int s=0;s<nx*ny; s++){
     
    282282        /* initial guess of the model */
    283283
    284         ifstream file5("m0_140114b.txt");
     284        ifstream file5("m0_092614zach.txt");
    285285        Matrix * mesh_ini= new Matrix(mx*my,3);
    286286        for(int s=0;s<mx*my; s++){
     
    296296
    297297        /* 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");
    300300
    301301        /* counters initialization */
Note: See TracChangeset for help on using the changeset viewer.