Skip to content

Commit 8f7dba4

Browse files
committed
fix compiler warnings for return types and QMCFiniteSize initializatino
1 parent a506037 commit 8f7dba4

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

src/QMCTools/QMCFiniteSize/QMCFiniteSize.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace qmcplusplus
1515
{
16-
QMCFiniteSize::QMCFiniteSize() : skparser(NULL), ptclPool(NULL), myRcut(0.0), myConst(0.0), P(NULL), h(0.0)
16+
QMCFiniteSize::QMCFiniteSize() : skparser(NULL), ptclPool(NULL), myRcut(0.0), myConst(0.0), P(NULL), h(0.0), sphericalgrid(0), myGrid(NULL)
1717
{
1818
IndexType mtheta = 80;
1919
IndexType mphi = 80;
@@ -23,7 +23,7 @@ QMCFiniteSize::QMCFiniteSize() : skparser(NULL), ptclPool(NULL), myRcut(0.0), my
2323
}
2424

2525
QMCFiniteSize::QMCFiniteSize(SkParserBase* skparser_i)
26-
: skparser(skparser_i), ptclPool(NULL), myRcut(0.0), myConst(0.0), P(NULL), h(0.0), sphericalgrid(0)
26+
: skparser(skparser_i), ptclPool(NULL), myRcut(0.0), myConst(0.0), P(NULL), h(0.0), sphericalgrid(0), myGrid(NULL)
2727
{
2828
mtheta = 80;
2929
mphi = 80;
@@ -99,10 +99,11 @@ bool QMCFiniteSize::validateXML()
9999
app_log() << " Summary of QMC systems \n";
100100
app_log() << "=========================================================\n";
101101
ptclPool.get(app_log());
102+
return true;
102103
}
103104

104105

105-
bool QMCFiniteSize::wfnPut(xmlNodePtr cur)
106+
void QMCFiniteSize::wfnPut(xmlNodePtr cur)
106107
{
107108
std::string id("psi0"), target("e"), role("extra");
108109
OhmmsAttributeSet pAttrib;
@@ -640,6 +641,8 @@ bool QMCFiniteSize::execute()
640641
calcPotentialCorrection();
641642

642643
summary();
644+
645+
return true;
643646
}
644647

645648
} // namespace qmcplusplus

src/QMCTools/QMCFiniteSize/QMCFiniteSize.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ class QMCFiniteSize : public QMCAppBase, QMCTraits
5252
RealType myConst;
5353
ParticleSet* P;
5454
RealType h; //this is for finite differencing.
55-
LRHandlerType* AA;
55+
vector<PosType> sphericalgrid;
5656
GridType* myGrid;
57+
LRHandlerType* AA;
5758
RadFunctorType* rVs;
5859
bool processPWH(xmlNodePtr cur);
59-
bool wfnPut(xmlNodePtr cur);
60+
void wfnPut(xmlNodePtr cur);
6061
void initBreakup();
6162
Grid_t gridx;
6263
Grid_t gridy;
@@ -72,7 +73,6 @@ class QMCFiniteSize : public QMCAppBase, QMCTraits
7273
IndexType mtheta;
7374
IndexType mphi;
7475
IndexType NumSamples;
75-
vector<PosType> sphericalgrid;
7676
RealType Ne, Vol, rs, rho;
7777
RealType tlo, tloerr, vlo, vloerr, Vfs, Vfserr;
7878
};

0 commit comments

Comments
 (0)