source: issm/oecreview/Archive/12321-12677/ISSM-12577-12578.diff

Last change on this file was 12679, checked in by Mathieu Morlighem, 13 years ago

Added 12321-12677

File size: 970 bytes
  • u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/src/c/modules/Solverx/SolverxGsl.cpp

     
    4242        gsl_vector_view  b;
    4343        gsl_vector      *x = NULL;
    4444        gsl_permutation *p = NULL;
    45 
     45#ifdef _HAVE_ADOLC_
     46        // if we use Adol-C then the IssmDouble will be an adouble
     47        // and the calls to gsl_... will not work
     48        // and we should call  a suitable wrapped solve instead
     49        _error2_("SolverxGsl: should not be here with Adol-C");
     50#else
    4651        /*A will be modified by LU decomposition. Use copy*/
    4752        IssmDouble* Acopy = xNew<IssmDouble>(n*n);
    4853        xMemCpy<IssmDouble>(Acopy,A,n*n);
     
    6974        gsl_permutation_free(p);
    7075        gsl_vector_free(x);
    7176        *pX=X;
     77#endif
    7278}/*}}}*/
Note: See TracBrowser for help on using the repository browser.