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/gadget.cc
[mareframe]
/
trunk
/
gadget
/
gadget.cc
Repository:
Repository Listing
mareframe
Diff of /trunk/gadget/gadget.cc
Parent Directory
|
Revision Log
|
Patch
revision 19, Wed May 25 16:36:33 2016 UTC
revision 20, Fri Apr 7 09:20:55 2017 UTC
#
Line 153
Line 153
153
}
}
154
155
#ifdef _OPENMP
#ifdef _OPENMP
156
if (main.runParallel()){
157
int numThr = omp_get_max_threads ( );
int numThr = omp_get_max_threads ( );
158
handle.logMessage(LOGINFO, "Info - initialise ", numThr," EcoSystems ");
159
EcoSystems = new Ecosystem*[numThr];
EcoSystems = new Ecosystem*[numThr];
160
int i;
int i;
161
#pragma omp parallel for shared(EcoSystems,main,data,handle)
162
for (i=0; i<numThr; i++)
for (i=0; i<numThr; i++)
163
{
{
164
handle.logMessage(LOGINFO, "Info - Ecosystem ", i);
165
if (main.getInitialParamGiven()) {
166
EcoSystems[i] = new Ecosystem(main);
EcoSystems[i] = new Ecosystem(main);
167
EcoSystems[i]->Update(data);
EcoSystems[i]->Update(data);
168
EcoSystems[i]->checkBounds();
169
}
170
EcoSystems[i]->Initialise();
EcoSystems[i]->Initialise();
171
}
}
172
}
173
#endif
#endif
174
EcoSystem->Optimise();
EcoSystem->Optimise();
175
delete data;
delete data;
Colored Diff
Long Colored Diff
Unidiff
Context Diff
Side by Side
Legend:
Removed from v.19
changed lines
Added in v.20
root@forge.cesga.es
ViewVC Help
Powered by
ViewVC 1.0.0