| 53 |
|
#include "brains/Register.hpp" |
| 54 |
|
#include "lattice/LatticeFactory.hpp" |
| 55 |
|
|
| 56 |
+ |
using namespace std; |
| 57 |
|
namespace OpenMD{ |
| 58 |
< |
shapedLattice::shapedLattice(RealType latticeConstant, |
| 59 |
< |
std::string latticeType) { |
| 60 |
< |
latticeConstant_ = latticeConstant; |
| 60 |
< |
latticeType_ = latticeType; |
| 58 |
> |
shapedLattice::shapedLattice(RealType latticeConstant, string latticeType) |
| 59 |
> |
: latticeConstant_(latticeConstant), latticeType_(latticeType) { |
| 60 |
> |
|
| 61 |
|
registerLattice(); |
| 62 |
|
simpleLattice_ = LatticeFactory::getInstance()->createLattice(latticeType); |
| 63 |
|
if (simpleLattice_ == NULL){ |