Changeset 160 for trunk/ADOL-C/examples


Ignore:
Timestamp:
Sep 15, 2010 1:30:57 PM (9 years ago)
Author:
kulshres
Message:

Squashed merge branch 'master' of 'gitclone' into svn

  • 'master' of 'gitclone': (4 commits) use unmanaged functions for recovery from colpack too fix test for sizeof_void_p in configure.ac wrap set_HP in #ifdef SPARSE for windows nosparse compilation version update after release

Details of the commits:

commit 7913137aacaca89674b60f5f858017e135201427
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Sep 15 16:01:44 2010 +0200

use unmanaged functions for recovery from colpack too

these pointers are returned to the user, and he may delete them when
he wishes, so we cannot expect ColPack? to memory manage them.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 66999f6a57b452498e2dc75162f02a2778b9ed89
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Fri Sep 10 15:32:02 2010 +0200

fix test for sizeof_void_p in configure.ac

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 50ba17a10bb0141f6f15a332f4945230074d2d23
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Sep 8 14:05:40 2010 +0200

wrap set_HP in #ifdef SPARSE for windows nosparse compilation

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit b798110feb848e56e60d8092fd225ffd2cc19e34
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Sep 6 13:58:07 2010 +0200

version update after release

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

Location:
trunk/ADOL-C/examples/additional_examples/sparse
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/examples/additional_examples/sparse/sparse_hessian.cpp

    r147 r160  
    8989        printf("%2d %2d %10.6f\n\n",rind[i],cind[i],values[i]);
    9090
     91    delete[] rind;
     92    delete[] cind;
     93    delete[] values;
     94
    9195    options[0] = 0;          /*                               safe mode (default) */
    9296    options[1] = 1;          /*                                   direct recovery */
     
    98102        printf("%2d %2d %10.6f\n\n",rind[i],cind[i],values[i]);
    99103
     104    delete[] rind;
     105    delete[] cind;
     106    delete[] values;
     107
    100108/*--------------------------------------------------------------------------*/
    101109/*  change value of x, but not the sparsity pattern                         */
     
    120128        printf("%2d %2d %10.6f\n\n",rind[i],cind[i],values[i]);
    121129
     130    delete[] rind;
     131    delete[] cind;
     132    delete[] values;
    122133
    123134/****************************************************************************/
  • trunk/ADOL-C/examples/additional_examples/sparse/sparse_jacobian.cpp

    r147 r160  
    9494        printf("%2d %2d %10.6f\n\n",rind[i],cind[i],values[i]);
    9595
     96    delete[] rind;
     97    delete[] cind;
     98    delete[] values;
    9699/*--------------------------------------------------------------------------*/
    97100/*  same approach but using row compression                                 */
     
    108111        printf("%2d %2d %10.6f\n\n",rind[i],cind[i],values[i]);
    109112
     113    delete[] rind;
     114    delete[] cind;
     115    delete[] values;
    110116/*--------------------------------------------------------------------------*/
    111117/*  change value of x, but not the sparsity pattern                         */
     
    130136        printf("%2d %2d %10.6f\n\n",rind[i],cind[i],values[i]);
    131137
    132 
     138    delete[] rind;
     139    delete[] cind;
     140    delete[] values;
    133141/*--------------------------------------------------------------------------*/
    134142/*  same approach but using row compression                                 */
     
    145153        printf("%2d %2d %10.6f\n\n",rind[i],cind[i],values[i]);
    146154
     155    delete[] rind;
     156    delete[] cind;
     157    delete[] values;
    147158/****************************************************************************/
    148159/*******       sparse Jacobians, separate drivers             ***************/
Note: See TracChangeset for help on using the changeset viewer.