mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-15 18:38:23 +01:00
changed default numbeer of cores to max-1
This commit is contained in:
parent
fc4689461e
commit
684fcd217f
@ -72,7 +72,7 @@ class Simulation {
|
|||||||
* must be set. For the BTCS approach, the Thomas algorithm is used as
|
* must be set. For the BTCS approach, the Thomas algorithm is used as
|
||||||
* the default linear equation solver as this is faster for tridiagonal
|
* the default linear equation solver as this is faster for tridiagonal
|
||||||
* matrices. CSV output, console output and time measure are off by default.
|
* matrices. CSV output, console output and time measure are off by default.
|
||||||
* Also, the number of cores is set to the maximum number of cores by default.
|
* Also, the number of cores is set to the maximum number of cores -1 by default.
|
||||||
*
|
*
|
||||||
* @param grid Valid grid object
|
* @param grid Valid grid object
|
||||||
* @param bc Valid boundary condition object
|
* @param bc Valid boundary condition object
|
||||||
|
|||||||
@ -11,8 +11,6 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
|
|
||||||
#define NUM_THREADS 6
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ Simulation::Simulation(Grid &grid, Boundary &bc, APPROACH approach) : grid(grid)
|
|||||||
this->timestep = -1; // error per default; needs to be set
|
this->timestep = -1; // error per default; needs to be set
|
||||||
this->iterations = -1;
|
this->iterations = -1;
|
||||||
this->innerIterations = 1;
|
this->innerIterations = 1;
|
||||||
this->numThreads = omp_get_num_procs();
|
this->numThreads = omp_get_num_procs()-1;
|
||||||
|
|
||||||
this->csv_output = CSV_OUTPUT_OFF;
|
this->csv_output = CSV_OUTPUT_OFF;
|
||||||
this->console_output = CONSOLE_OUTPUT_OFF;
|
this->console_output = CONSOLE_OUTPUT_OFF;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user