ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
simulation.hpp
Go to the documentation of this file.
1 /*****************************************************************************
2  *
3  * ALPS MPS DMRG Project
4  *
5  * Copyright (C) 2013 Institute for Theoretical Physics, ETH Zurich
6  * 2011-2013 by Michele Dolfi <dolfim@phys.ethz.ch>
7  *
8  * This software is part of the ALPS Applications, published under the ALPS
9  * Application License; you can use, redistribute it and/or modify it under
10  * the terms of the license, either version 1 or (at your option) any later
11  * version.
12  *
13  * You should have received a copy of the ALPS Application License along with
14  * the ALPS Applications; see the file LICENSE.txt. If not, the license is also
15  * available from http://alps.comp-phys.org/.
16  *
17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19  * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
20  * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
21  * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
22  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23  * DEALINGS IN THE SOFTWARE.
24  *
25  *****************************************************************************/
26 
27 #ifndef ALPS_MPS_SIM_RUN_H
28 #define ALPS_MPS_SIM_RUN_H
29 
30 #include <boost/shared_ptr.hpp>
32 
33 struct simulation_base {
34  virtual ~simulation_base() {}
35  virtual void run(DmrgParameters & parms, bool write_xml) =0;
36 };
37 
38 template <class SymmGroup>
39 struct simulation : public simulation_base {
40  void run(DmrgParameters & parms, bool write_xml);
41 };
42 
43 struct simulation_traits {
44  typedef boost::shared_ptr<simulation_base> shared_ptr;
45  template <class SymmGroup> struct F {
47  };
48 };
49 
50 #endif
virtual ~simulation_base()
Definition: simulation.hpp:34
simulation< SymmGroup > type
Definition: simulation.hpp:46
virtual void run(DmrgParameters &parms, bool write_xml, run_type rt)=0
boost::shared_ptr< simulation_base > shared_ptr
Definition: simulation.hpp:44
void run(DmrgParameters &parms, bool write_xml, run_type rt)
Definition: simulation.ipp:33