Project
People
Skill
Log In
|
Get Help
Home
My Page
Projects
Code Snippets
Project Openings
Mareframe
Summary
Activity
Forums
Tracker
Lists
Tasks
Docs
Surveys
News
SCM
Files
[mareframe] Diff of /trunk/gadget/interruptinterface.cc
[mareframe]
/
trunk
/
gadget
/
interruptinterface.cc
Repository:
Repository Listing
mareframe
Diff of /trunk/gadget/interruptinterface.cc
Parent Directory
|
Revision Log
|
Patch
revision 26, Mon May 8 07:59:53 2017 UTC
revision 27, Mon May 8 11:58:23 2017 UTC
#
Line 7
Line 7
7
extern volatile int interrupted;
extern volatile int interrupted;
8
#ifdef _OPENMP
#ifdef _OPENMP
9
extern Ecosystem** EcoSystems;
extern Ecosystem** EcoSystems;
10
extern MainInfo _main;
11
#endif
#endif
12
13
void InterruptInterface::printMenu() {
void InterruptInterface::printMenu() {
#
Line 14
Line 15
15
{
{
16
int iters = EcoSystem->getFuncEval();
int iters = EcoSystem->getFuncEval();
17
#ifdef _OPENMP
#ifdef _OPENMP
18
if (_main.runParallel()){
19
int numThr = omp_get_max_threads ( );
int numThr = omp_get_max_threads ( );
20
for (int i = 0; i < numThr; i++)
for (int i = 0; i < numThr; i++)
21
iters += EcoSystems[i]->getFuncEval();
iters += EcoSystems[i]->getFuncEval();
22
}
23
#endif
#endif
24
cout << "\nInterrupted after a total of " << iters << " iterations ...";
cout << "\nInterrupted after a total of " << iters << " iterations ...";
25
}
}
Colored Diff
Long Colored Diff
Unidiff
Context Diff
Side by Side
Legend:
Removed from v.26
changed lines
Added in v.27
root@forge.cesga.es
ViewVC Help
Powered by
ViewVC 1.0.0