Fixed some compiler warnings
This commit is contained in:
parent
fb4f84a511
commit
49ff201c4e
@ -2361,7 +2361,8 @@ This should ultimately be taken out even for newer ale3d implementation
|
||||
printf("putNodalFieldData WARNING : \n");
|
||||
printf(" set nodeNumbers = NULL, set numNodes = 0.\n");
|
||||
}
|
||||
MLI_NodalCoord_ = new double[localEndRow_-localStartRow_+1];
|
||||
nRows = localEndRow_ - localStartRow_ + 1;
|
||||
MLI_NodalCoord_ = new double[nRows];
|
||||
for (i=0; i<nRows; i++) MLI_NodalCoord_[i] = data[i];
|
||||
}
|
||||
}
|
||||
@ -2674,7 +2675,7 @@ int HYPRE_LinSysCore::enforceEssentialBC(int* globalEqn, double* alpha,
|
||||
|
||||
//**/================================================================
|
||||
//**/ The following is for multiple right hand side (Mar 2009)
|
||||
if (mRHSFlag_ == 1 && currentRHS_ != 0 & mRHSNumGEqns_ > 0)
|
||||
if (mRHSFlag_ == 1 && currentRHS_ != 0 && mRHSNumGEqns_ > 0)
|
||||
{
|
||||
for( i = 0; i < leng; i++ )
|
||||
{
|
||||
@ -2918,7 +2919,7 @@ int HYPRE_LinSysCore::enforceRemoteEssBCs(int numEqns, int* globalEqns,
|
||||
//============================================================
|
||||
//**/ The following is for multiple right hand side (Mar 2009)
|
||||
|
||||
if (mRHSFlag_ == 1 && currentRHS_ != 0 & mRHSNumGEqns_ > 0)
|
||||
if (mRHSFlag_ == 1 && currentRHS_ != 0 && mRHSNumGEqns_ > 0)
|
||||
{
|
||||
for( i = 0; i < numEqns; i++ )
|
||||
{
|
||||
|
||||
@ -54,7 +54,7 @@ enum HYpreconID {HYIDENTITY,HYDIAGONAL,HYPILUT,HYPARASAILS,HYBOOMERAMG,HYML,
|
||||
HYDDILUT,HYPOLY,HYDDICT,HYSCHWARZ,HYEUCLID,HYBLOCK,HYMLI,
|
||||
HYUZAWA,HYMLMAXWELL,HYAMS,HYSYSPDE,HYDSLU};
|
||||
|
||||
#define HYFEI_HIGHMASK 2147483647-255
|
||||
#define HYFEI_HIGHMASK (2147483647-255)
|
||||
#define HYFEI_SPECIALMASK 255
|
||||
#define HYFEI_SLIDEREDUCE1 256
|
||||
#define HYFEI_SLIDEREDUCE2 512
|
||||
|
||||
@ -218,7 +218,7 @@ double MLI_Method_AMGSA::genP(MLI_Matrix *mli_Amat,
|
||||
* create global P
|
||||
*-----------------------------------------------------------------*/
|
||||
|
||||
if ( initAggr == NULL & numSmoothVec_ == 0 )
|
||||
if ( (initAggr == NULL) & (numSmoothVec_ == 0) )
|
||||
{
|
||||
if ( GGlobalNRows <= minAggrSize_*numProcs )
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user