cleanup and replaced parseFortranDouble to strtod
This commit is contained in:
@@ -1418,32 +1418,30 @@ ParallelRegion* getRegionByLine(const vector<ParallelRegion*>& regions, const st
|
||||
std::pair<ParallelRegion*, const ParallelRegionLines*> getRegionAndLinesByLine(const vector<ParallelRegion*>& regions, const string& file, const int line)
|
||||
{
|
||||
if (regions.size() == 1 && regions[0]->GetName() == "DEFAULT") // only default
|
||||
return {regions[0], NULL};
|
||||
|
||||
return { regions[0], NULL };
|
||||
else if (regions.size() > 0)
|
||||
{
|
||||
map<ParallelRegion*, const ParallelRegionLines*> regFound;
|
||||
|
||||
const ParallelRegionLines* foundLines = nullptr;
|
||||
const ParallelRegionLines* foundLines = NULL;
|
||||
|
||||
for (int i = 0; i < regions.size(); ++i)
|
||||
if (regions[i]->HasThisLine(line, file, &foundLines))
|
||||
regFound[regions[i]] = foundLines;
|
||||
|
||||
if (regFound.size() == 0)
|
||||
return {NULL, NULL};
|
||||
return { NULL, NULL };
|
||||
else if (regFound.size() == 1)
|
||||
return *regFound.begin();
|
||||
else
|
||||
{
|
||||
__spf_print(1, "WARN: this lines included in more than one region!!\n");
|
||||
return {NULL, NULL};
|
||||
return { NULL, NULL };
|
||||
}
|
||||
}
|
||||
else
|
||||
return {NULL, NULL};
|
||||
return { NULL, NULL };
|
||||
|
||||
return {NULL, NULL};
|
||||
return { NULL, NULL };
|
||||
}
|
||||
|
||||
set<ParallelRegion*> getAllRegionsByLine(const vector<ParallelRegion*>& regions, const string& file, const int line)
|
||||
|
||||
Reference in New Issue
Block a user