-
Notifications
You must be signed in to change notification settings - Fork 15
Refactor integrator #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this is going well too! Can you please take care of the small comments here, and then I can help you with the CMake setup for compiling these so you can also work on the GPU code.
src/TwoStepBrownianFlow.h
Outdated
@@ -90,10 +84,6 @@ template<class FlowField> class PYBIND11_EXPORT TwoStepBrownianFlow : public Two | |||
/*! | |||
* \param noiseless If true, do not apply a random diffusive force | |||
*/ | |||
void setNoiseless(bool noiseless) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This setter should not have been removed, please restore.
src/TwoStepBrownianFlow.h
Outdated
.def("getFlowField", &BrownianFlow::getFlowField) | ||
.def("getNoiseless", &BrownianFlow::getNoiseless); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how you make a property. flow_field
should be read-only, but noiseless
can be mutable.
.def("getFlowField", &BrownianFlow::getFlowField) | |
.def("getNoiseless", &BrownianFlow::getNoiseless); | |
.def_property_readonly("flow_field", &BrownianFlow::getFlowField) | |
.def_property("noiseless", &BrownianFlow::getNoiseless, &BrownianFlow::setNoiseless); |
src/TwoStepBrownianFlow.h
Outdated
} | ||
} // end namespace detail | ||
} // end namespace azplugins | ||
|
||
} // end namespace hoomd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} // end namespace hoomd | |
} // end namespace hoomd | |
src/TwoStepLangevinFlow.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please apply the same changes to this file as for the BD one.
src/module.cc
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will help you write some machinery to compile these.
eb25c1e
to
4bdc2e6
Compare
No description provided.