/*************************************************************************** mbmd_mod.cpp - description ------------------- begin : Sun Mar 12 22:50:33 2006 copyright : (C) 2002 by Cavalli Andrea email : cavalli@bioc.unizh.ch **************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include #include #include #include #include using namespace Almost; typedef MDImpl > * (MBMD::*md_factory)(const Molecules & molecules, const MDOptions & options, const MDB & mdb, vector >& t); #if (__GNUC__ >= 3) template<> #endif map::md_factory > MBMD::factory #if (__GNUC__ >= 3) = map::md_factory >(); #endif ; ostream & operator<<(ostream & out,const MBMD & ){ out<<""; return out; } template<> inline string to_string(const MBMD & molecules){ return ""; } template<> inline string to_string(const Molecules & molecules){ return ""; } template<> inline string to_string(const MDB & mdb){ return ""; } // typedef MDBaseTraits< // double, // MDCoorManager,CoorManagerOptions, // CSSNC19ForceField, // CSSNC19ForceField::Options, // MDImplData,MDOptions >, // MDImplOpts > // > mbmd_traits; // void qq(){ // new MBMDImplementation >(); // }; extern "C" { void init_mbmd(){ //declarations here Module mod = Module("mbmd"); REGISTER_MBMDC19_OPTIONS(double); REGISTER_MBMD_CONST(double); Class >(mod.self(),"mbmd") .def_method("add_thermostat",&MBMD::add_thermostat) .def_method("run",&MBMD::run) .def_method("cont",&MBMD::cont) .def_method("run_from_mol",&MBMD::run_from_mol) .def_method("restart",&MBMD::restart); mod.def_function("const_mbmd","Run a constrained MBMD simulation", const_mbmd >); mod .def_function("c19_options","Return options with right defaults",c19_md_options) .def_function("c22_options","Return options with right defaults",c22_md_options) .def_function("c19_defaults","Return options with right defaults",c19_defaults); } }