Skip to content

Commit

Permalink
Merge pull request #317 from nigel-cresset/devel
Browse files Browse the repository at this point in the history
Fixed compiler and runtime errors
  • Loading branch information
lohedges authored Jul 28, 2020
2 parents edd9153 + 6fb7b08 commit 5d4968f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 78 deletions.
77 changes: 0 additions & 77 deletions wrapper/CAS/_CAS_free_functions.pypp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1126,32 +1126,6 @@ void register_free_functions(){

}

{ //::cbrt

typedef float ( *cbrt_function_type )( float );
cbrt_function_type cbrt_function_value( &::cbrt );

bp::def(
"cbrt"
, cbrt_function_value
, ( bp::arg("__lcpp_x") )
, "" );

}

{ //::cbrt

typedef long double ( *cbrt_function_type )( long double );
cbrt_function_type cbrt_function_value( &::cbrt );

bp::def(
"cbrt"
, cbrt_function_value
, ( bp::arg("__lcpp_x") )
, "" );

}

{ //::SireCAS::cbrt

typedef ::SireCAS::Expression ( *cbrt_function_type )( ::SireCAS::Expression const & );
Expand All @@ -1178,32 +1152,6 @@ void register_free_functions(){

}

{ //::pow

typedef float ( *pow_function_type )( float,float );
pow_function_type pow_function_value( &::pow );

bp::def(
"pow"
, pow_function_value
, ( bp::arg("__lcpp_x"), bp::arg("__lcpp_y") )
, "" );

}

{ //::pow

typedef long double ( *pow_function_type )( long double,long double );
pow_function_type pow_function_value( &::pow );

bp::def(
"pow"
, pow_function_value
, ( bp::arg("__lcpp_x"), bp::arg("__lcpp_y") )
, "" );

}

{ //::SireCAS::pow

typedef ::SireCAS::Expression ( *pow_function_type )( ::SireCAS::Expression const &,int );
Expand Down Expand Up @@ -1360,31 +1308,6 @@ void register_free_functions(){

}

{ //::sqrt

typedef float ( *sqrt_function_type )( float );
sqrt_function_type sqrt_function_value( &::sqrt );

bp::def(
"sqrt"
, sqrt_function_value
, ( bp::arg("__lcpp_x") )
, "" );

}

{ //::sqrt

typedef long double ( *sqrt_function_type )( long double );
sqrt_function_type sqrt_function_value( &::sqrt );

bp::def(
"sqrt"
, sqrt_function_value
, ( bp::arg("__lcpp_x") )
, "" );

}

{ //::SireCAS::sqrt

Expand Down
4 changes: 4 additions & 0 deletions wrapper/FF/ForceFields.pypp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#include "Helpers/clone_const_reference.hpp"
#include "ForceFields.pypp.hpp"

#ifdef _WIN32
struct IUnknown;
#endif

namespace bp = boost::python;

#include "SireBase/combineproperties.h"
Expand Down
1 change: 0 additions & 1 deletion wrapper/Tools/FreeEnergyAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
raise ImportError('Numpy is not installed. Please install numpy in order to use MBAR for your free energy analysis.')
from pymbar import MBAR
from pymbar import timeseries
import matplotlib.pylab as plt
import warnings


Expand Down
4 changes: 4 additions & 0 deletions wrapper/python/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ int main(int argc, char **argv)
qputenv("PYTHONHOME", python_home.canonicalPath().toUtf8());
*/

#ifdef _WIN32
qputenv("PYTHONHOME", QDir(getInstallDir()).canonicalPath().toUtf8() );
#endif

//now look at the name of the executable. If there is a script with this
//name in share/scripts then run that script
QDir scripts_dir( QString("%1/scripts").arg(getShareDir()) );
Expand Down

0 comments on commit 5d4968f

Please sign in to comment.