Changeset 3572 in Sophya for trunk/SophyaLib/NTools/simplex.cc


Ignore:
Timestamp:
Feb 7, 2009, 10:50:34 PM (17 years ago)
Author:
cmv
Message:

char* -> const char* pour regler les problemes de deprecated string const... + comparaison unsigned signed + suppression EVOL_PLANCK rz+cmv 07/02/2009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/simplex.cc

    r2808 r3572  
    366366  int ilo, ihi, inhi;
    367367  int move = 0;
    368   char* smov[6] = { "None", "Reflection", "ReflecExpand", "ContractHigh", "ContractLow", "ExpandHigh" };
     368  const char* smov[6] = { "None", "Reflection", "ReflecExpand", "ContractHigh", "ContractLow", "ExpandHigh" };
    369369  int movcnt[6] = {0,0,0,0,0,0};
    370370
     
    511511int MinZSimplex::StopReason(string& s)
    512512{
    513   char* sr[5] = { "NoConverg, MaxIterReached", "OK, fm<Tol0", "OK, Df/f<Tol1",
     513  const char* sr[5] = { "NoConverg, MaxIterReached", "OK, fm<Tol0", "OK, Df/f<Tol1",
    514514                  "OK, [Df/f max]Iter<Tol2" "Error - Wrong StopReason" };
    515515  int stop = mStop;
Note: See TracChangeset for help on using the changeset viewer.