Skip to content

Commit

Permalink
fixed bug when torch is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang committed Oct 11, 2024
1 parent c471ae8 commit d500a88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/colvarcomp_torchann.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,8 @@ int colvar::torchANN::init(std::string const &conf) {

}

void colvar::torchANN::calc_value()
{
}

#endif
1 change: 1 addition & 0 deletions src/colvarcomp_torchann.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class colvar::torchANN
torchANN();
virtual ~torchANN();
virtual int init(std::string const &conf);
virtual void calc_value();
};
#endif // COLVARS_TORCH checking

Expand Down

0 comments on commit d500a88

Please sign in to comment.