Hi,

 I want to add a new function to the topology.h which is exactly the same 
as "CreatBead" function 
except that it does not push_back the bead to the "_beads" container. SO I 
added the followings to the topology.h:

virtual Bead *CreateNewBead(byte_t symmetry, string name, BeadType *type, 
int resnr, double m, double q);

inline Bead *Topology::CreateNewBead(byte_t symmetry, string name, BeadType 
*type, int resnr, double m, double q)
{

    Bead *b = new Bead(this, _beads.size(), type, symmetry, name, resnr, m, 
q);
    return b;
}

 My problem is that when I call this function in the  
CsgREupdateWorker::EvalConfiguration 

Bead *bi = conf->getBead(0);
BeadType *type =  conf->GetOrCreateBeadType(bi->getType()->getName());
Bead *btp = conf->CreateBead(bi->getSymmetry(), bi->getName(), type, 
bi->getResnr(), bi->getM(), bi->getQ());

and compile the code by make and make install, It will not recognize the 
added function and I will get the following error:

/home/motevas2/application/votca/src/csg/src/tools/csg_reupdate.cc: In 
member function 'void 
CsgREupdateWorker::EvalNonbonded(votca::csg::Topology*, PotentialInfo*)':
/home/motevas2/application/votca/src/csg/src/tools/csg_reupdate.cc:681:25: 
error: 'class votca::csg::Topology' has no member named 'CreateInsBead'
make[2]: *** [src/tools/CMakeFiles/csg_reupdate.dir/csg_reupdate.cc.o] 
Error 1
make[1]: *** [src/tools/CMakeFiles/csg_reupdate.dir/all] Error 2
make: *** [all] Error 2

Ant suggestion or help would be really appreciated.

Thanks,
Mohammad

-- 
You received this message because you are subscribed to the Google Groups 
"votca" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/votca.
For more options, visit https://groups.google.com/d/optout.

Reply via email to