Skip to content

Commit

Permalink
Added global parameters to Python wrapper (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
peastman authored Apr 11, 2021
1 parent 51615eb commit 6472507
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/openmmtorch.i
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ public:
const std::string& getFile() const;
void setUsesPeriodicBoundaryConditions(bool periodic);
bool usesPeriodicBoundaryConditions() const;
int getNumGlobalParameters() const;
int addGlobalParameter(const std::string& name, double defaultValue);
const std::string& getGlobalParameterName(int index) const;
void setGlobalParameterName(int index, const std::string& name);
double getGlobalParameterDefaultValue(int index) const;
void setGlobalParameterDefaultValue(int index, double defaultValue);

/*
* Add methods for casting a Force to a TorchForce.
Expand Down

0 comments on commit 6472507

Please sign in to comment.