Changeset 1913 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Feb 26, 2002, 6:36:44 PM (24 years ago)
Author:
cmv
Message:

pb signed compar to unsigned cmv 26/02/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pawexecut.cc

    r1912 r1913  
    591591  return;}
    592592uint_4 n = v->Size();
    593 if(n<=0)
     593if(n==0)
    594594  {cout<<"PAWExecutor::v_integ Error: "<<tokens[0]<<" is an empty vector"<<endl;
    595595  return;}
     
    597597if(norm<=0. || (*v)(n-1)==0.) return;
    598598norm /= (*v)(n-1);
    599 for(int_4 i=0;i<n;i++) (*v)(i) *= norm;
     599for(uint_4 i=0;i<n;i++) (*v)(i) *= norm;
    600600}
    601601
     
    641641  return;}
    642642uint_4 n = v->Size();
    643 if(n<=0)
     643if(n==0)
    644644  {cout<<"PAWExecutor::v_deriv Error: "<<tokens[0]<<" is an empty vector"<<endl;
    645645  return;}
Note: See TracChangeset for help on using the changeset viewer.