fix for warnings & detecting opensource nouveau drivers.
This commit is contained in:
@@ -1001,7 +1001,7 @@ bool LbmFsgrSolver::initializeSolverMemory()
|
||||
preinitGrids();
|
||||
for(int lev=0; lev<=mMaxRefine; lev++) {
|
||||
FSGR_FORIJK_BOUNDS(lev) {
|
||||
RFLAG(lev,i,j,k,0) = RFLAG(lev,i,j,k,0) = 0; // reset for changeFlag usage
|
||||
RFLAG(lev,i,j,k,0) = 0, RFLAG(lev,i,j,k,0) = 0; // reset for changeFlag usage
|
||||
if(!mAllfluid) {
|
||||
initEmptyCell(lev, i,j,k, CFEmpty, -1.0, -1.0);
|
||||
} else {
|
||||
|
@@ -12,6 +12,9 @@
|
||||
|
||||
/* debugging outputs , debug level 0 (off) to 10 (max) */
|
||||
#ifdef ELBEEM_PLUGIN
|
||||
#ifdef DEBUG
|
||||
#undef DEBUG
|
||||
#endif
|
||||
#define DEBUG 0
|
||||
#else // ELBEEM_PLUGIN
|
||||
#define DEBUG 10
|
||||
|
@@ -135,7 +135,7 @@ void GPU_extensions_init()
|
||||
GG.device = GPU_DEVICE_ATI;
|
||||
GG.driver = GPU_DRIVER_OPENSOURCE;
|
||||
}
|
||||
else if(strstr(renderer, "Nouveau")) {
|
||||
else if(strstr(renderer, "Nouveau") || strstr(vendor, "nouveau")) {
|
||||
GG.device = GPU_DEVICE_NVIDIA;
|
||||
GG.driver = GPU_DRIVER_OPENSOURCE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user