MercuryDPM  0.11
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HandlerConstructorDestructorUnitTest.cpp File Reference
#include <iostream>
#include <Species/LinearViscoelasticSpecies.h>
#include "DPMBase.h"
#include "Particles/BaseParticle.h"
#include "Walls/InfiniteWall.h"
#include "Boundaries/PeriodicBoundary.h"

Go to the source code of this file.

Classes

class  my_problem
 todo{This code is not working as is wanted} More...
 

Functions

int main (int argc UNUSED, char *argv[] UNUSED)
 

Function Documentation

int main ( int argc  UNUSED,
char *argv[]  UNUSED 
)

Definition at line 55 of file HandlerConstructorDestructorUnitTest.cpp.

References Files::setName(), and my_problem::setupInitialConditions().

56 {
57  {
58  std::cout<<"Creating base problem"<<std::endl;
59  my_problem problem;
60  problem.setName("ParticleHandlerDestructorTest");
61  std::cout<<"Finished creating base problem"<<std::endl<<std::endl;
62 
63  std::cout<<"Adding a BaseParticle, InfiniteWall and PeriodicBoundary to the base problem"<<std::endl;
64  problem.setupInitialConditions();
65  std::cout<<"Finished adding a BaseParticle, InfiniteWall and PeriodicBoundary to the base problem"<<std::endl<<std::endl;
66 
67  std::cout<<"Copying base problem"<<std::endl;
68  //my_problem problem2(problem);
69  std::cout<<"Finished copying base problem"<<std::endl<<std::endl;
70 
71  std::cout<<"Starting to destruct everything"<<std::endl;
72  }
73  std::cout << "Ready" << std::endl;
74 }
void setupInitialConditions()
This function allows to set the initial conditions for our problem to be solved, by default particle ...
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: Files.cc:149
todo{This code is not working as is wanted}