Commit cf58aadb authored by Anton Gladky's avatar Anton Gladky
Browse files

Remove "using namespace std;" everywhere. Tests are failing.

parent 89f0817e
......@@ -14,6 +14,10 @@
#include<QGLViewer/constraint.h>
#include<set>
using std::setw;
using std::setfill;
using std::setprecision;
/*! Class handling user interaction with the openGL rendering of simulation.
*
* Clipping planes:
......
......@@ -15,11 +15,18 @@
#include <iostream>
#include <map>
#include <vector>
#include <set>
#include <list>
#include<yade/lib/base/Logging.hpp>
using namespace std;
using std::type_info;
using std::string;
using std::vector;
using std::list;
using std::set;
using std::map;
using std::istringstream;
class DynLibManager
{
......@@ -34,18 +41,18 @@ class DynLibManager
bool load(const std::string& libName);
bool unload (const string& libName);
bool isLoaded (const string& libName);
bool unload (const std::string& libName);
bool isLoaded (const std::string& libName);
bool unloadAll ();
void setAutoUnload ( bool enabled );
string lastError();
std::string lastError();
DECLARE_LOGGER;
private :
bool closeLib(const string libName);
bool closeLib(const std::string libName);
bool error();
string lastError_;
std::string lastError_;
};
......@@ -36,7 +36,28 @@
#include<yade/lib/base/Math.hpp>
using namespace std;
using std::endl;
using std::cout;
using std::cerr;
using std::vector;
using std::string;
using std::list;
using std::min;
using std::max;
using std::ifstream;
using std::ofstream;
using std::pair;
using std::runtime_error;
using std::logic_error;
using std::invalid_argument;
using std::ios;
using std::ios_base;
using std::fstream;
using std::ostream;
using std::ostringstream;
using std::swap;
using std::make_pair;
// empty functions for ADL
//namespace{
template<typename T> void preLoad(T&){}; template<typename T> void postLoad(T& obj){ /* cerr<<"Generic no-op postLoad("<<typeid(T).name()<<"&) called for "<<obj.getClassName()<<std::endl; */ }
......
......@@ -10,6 +10,7 @@
#include<yade/pkg/common/SPHEngine.hpp>
#endif
using std::isfinite;
YADE_PLUGIN((ViscElMat)(ViscElPhys)(Ip2_ViscElMat_ViscElMat_ViscElPhys)(Law2_ScGeom_ViscElPhys_Basic));
/* ViscElMat */
......
......@@ -434,7 +434,7 @@ void PeriodicFlowEngine::updateVolumes (FlowSolver& flow)
totVol+=newVol;
dVol=cell->info().volumeSign * ( newVol - cell->info().volume() );
totDVol+=dVol;
epsVolMax = max ( epsVolMax, abs ( dVol/newVol ) );
epsVolMax = max ( epsVolMax, std::abs ( dVol/newVol ) );
cell->info().dv() = dVol * invDeltaT;
cell->info().volume() = newVol;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment