------------------------------------------------------------
revno: 4163
committer: Bruno Chareyre <[email protected]>
timestamp: Mon 2014-09-15 12:27:11 +0200
message:
replace LOG_ERROR by LOG_WARN for notifying deprecation of GravityEngine
modified:
pkg/common/GravityEngines.cpp
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to
https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'pkg/common/GravityEngines.cpp'
--- pkg/common/GravityEngines.cpp 2014-07-03 07:16:58 +0000
+++ pkg/common/GravityEngines.cpp 2014-09-15 10:27:11 +0000
@@ -16,7 +16,7 @@
CREATE_LOGGER(GravityEngine);
void GravityEngine::action(){
- if (warnOnce) {warnOnce=false; LOG_ERROR("GravityEngine is deprecated, consider using Newton::gravity instead (unless gravitational energy has to be tracked - not implemented with the newton attribute).")}
+ if (warnOnce) {warnOnce=false; LOG_WARN("GravityEngine is deprecated, consider using Newton::gravity instead (unless gravitational energy has to be tracked - not implemented with the newton attribute).")}
const bool trackEnergy(scene->trackEnergy);
const Real dt(scene->dt);
YADE_PARALLEL_FOREACH_BODY_BEGIN(const shared_ptr<Body>& b, scene->bodies){
_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help : https://help.launchpad.net/ListHelp