Changeset 14882


Ignore:
Timestamp:
05/03/13 21:41:19 (12 years ago)
Author:
Eric.Larour
Message:

CHG: adolc mode mumps solver not yet available.

Location:
issm/trunk-jpl/src/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/ParseToolkitsOptionsx/ParseToolkitsOptionsx.cpp

    r14627 r14882  
    101101        MPI_Bcast(&numanalyses,1,MPI_INT,0,IssmComm::GetComm());
    102102        if(my_rank!=0){
    103                 analyses=xNew<IssmPDouble>(numanalyses);
     103                analyses=xNew<IssmDouble>(numanalyses);
    104104                strings=xNew<char*>(numanalyses);
    105105        }
  • issm/trunk-jpl/src/c/toolkits/mumps/MpiDenseMumpsSolve.cpp

    r14873 r14882  
    2121#include "dmumps_c.h"
    2222
    23 /*}}}*/
    2423
    2524#define JOB_INIT -1
    2625#define JOB_SOLVE 6
    2726#define JOB_END  -2
     27/*}}}*/
    2828
    29 void MpiDenseMumpsSolve( /*output: */ IssmDouble* uf, int uf_M, int uf_m, /*matrix input: */ IssmDouble* Kff, int Kff_M, int Kff_N, int Kff_m, /*right hand side vector: */ IssmDouble* pf, int pf_M, int pf_m){
     29void MpiDenseMumpsSolve( /*output: */ IssmPDouble* uf, int uf_M, int uf_m, /*matrix input: */ IssmPDouble* Kff, int Kff_M, int Kff_N, int Kff_m, /*right hand side vector: */ IssmPDouble* pf, int pf_M, int pf_m){ /*{{{*/
    3030
    31         /*Variables: */
     31        /*Variables: {{{*/
    3232
    3333
     
    4040        int        *irn_loc = NULL;
    4141        int        *jcn_loc = NULL;
    42         IssmDouble *a_loc   = NULL;
     42        IssmPDouble *a_loc   = NULL;
    4343        int         count;
    4444        int         lower_row;
    4545        int         upper_row;
    46         IssmDouble* rhs=NULL;
     46        IssmPDouble* rhs=NULL;
    4747        int*        recvcounts=NULL;
    4848        int*        displs=NULL;
    49 
     49        /*}}}*/
     50        /*Communicator info:{{{ */
    5051        my_rank=IssmComm::GetRank();
    5152        num_procs=IssmComm::GetSize();
    5253        comm=IssmComm::GetComm();
    53        
     54        /*}}}*/
    5455        /*First, some checks:{{{ */
    5556        if (Kff_M!=Kff_N)_error_("stiffness matrix Kff should be square");
     
    9798                irn_loc=xNew<int>(local_nnz);
    9899                jcn_loc=xNew<int>(local_nnz);
    99                 a_loc=xNew<IssmDouble>(local_nnz);
     100                a_loc=xNew<IssmPDouble>(local_nnz);
    100101        }
    101102       
     
    119120
    120121        /*Deal with right hand side. We need to MPI_Gather it onto cpu 0: */
    121         rhs=xNew<IssmDouble>(pf_M);
     122        rhs=xNew<IssmPDouble>(pf_M);
    122123
    123124        recvcounts=xNew<int>(num_procs);
     
    145146
    146147        /*}}}*/
    147         /*}}}*/
    148148        /*Cleanup: {{{*/
    149149        id.job = JOB_END;
     
    152152        xDelete<int>(irn_loc);
    153153        xDelete<int>(jcn_loc);
    154         xDelete<IssmDouble>(a_loc);
    155         xDelete<IssmDouble>(rhs);
     154        xDelete<IssmPDouble>(a_loc);
     155        xDelete<IssmPDouble>(rhs);
    156156        xDelete<int>(recvcounts);
    157157        xDelete<int>(displs);
    158158
    159159        /*}}}*/
    160 }
     160} /*}}}*/
    161161
     162#ifdef _HAVE_ADOLC_
     163void MpiDenseMumpsSolve( /*output: */ IssmDouble* uf, int uf_M, int uf_m, /*matrix input: */ IssmDouble* Kff, int Kff_M, int Kff_N, int Kff_m, /*right hand side vector: */ IssmDouble* pf, int pf_M, int pf_m){ /*{{{*/
     164        _error_("not supported yet!");
     165} /*}}}*/
     166#endif
Note: See TracChangeset for help on using the changeset viewer.