cleanup and replaced parseFortranDouble to strtod

This commit is contained in:
2025-05-29 09:07:20 +03:00
parent 18edf55d15
commit ba632b29ce
5 changed files with 17 additions and 89 deletions

View File

@@ -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)

View File

@@ -1,4 +1,3 @@
#pragma once
#define VERSION_SPF "2422"