IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 16, 2005, 1:07:10 PM (21 years ago)
Author:
desonia
Message:

removed *(type*)& syntax for setting const values of struts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psMinimize.c

    r5453 r5530  
    1010 *  @author EAM, IfA
    1111 *
    12  *  @version $Revision: 1.144 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-10-28 19:15:04 $
     12 *  @version $Revision: 1.145 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-11-16 23:06:19 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    1717 *  XXX: must follow coding name standards on local functions.
    1818 *  XXX: put local functions in front.
    19  * 
     19 *
    2020 */
    2121/*****************************************************************************/
     
    596596    psMinimization *min = psAlloc(sizeof(psMinimization));
    597597    psMemSetDeallocator(min, (psFreeFunc)minimizationFree);
    598     *(int*)&min->maxIter = maxIter;
    599     *(float*)&min->tol = tol;
     598    P_PSMINIMIZATION_SET_MAXITER(min,maxIter);
     599    P_PSMINIMIZATION_SET_TOL(min,tol);
    600600    min->value = 0.0;
    601601    min->iter = 0;
     
    11641164        for (i=0;i<numDims;i++) {
    11651165            if (myParamMask->data.U8[i] == 0) {
    1166                 *(int*)&dummyMin.maxIter = PS_MINIMIZE_POWELL_LINEMIN_MAX_ITERATIONS;
     1166                P_PSMINIMIZATION_SET_MAXITER((&dummyMin),PS_MINIMIZE_POWELL_LINEMIN_MAX_ITERATIONS);
    11671167                *(float*)&dummyMin.tol = PS_MINIMIZE_POWELL_LINEMIN_ERROR_TOLERANCE;
    11681168                mul = p_psLineMin(&dummyMin,
Note: See TracChangeset for help on using the changeset viewer.