Fix typos: spesific -> specific
This commit is contained in:
@@ -287,12 +287,12 @@ void ECLRegressionTest::checkSpesificKeyword(std::vector<std::string>& keywords1
|
||||
std::vector<eclArrType>& arrayType2,
|
||||
const std::string& reference)
|
||||
{
|
||||
auto search1 = std::find(keywords1.begin(), keywords1.end(), spesificKeyword);
|
||||
auto search2 = std::find(keywords2.begin(), keywords2.end(), spesificKeyword);
|
||||
auto search1 = std::find(keywords1.begin(), keywords1.end(), specificKeyword);
|
||||
auto search2 = std::find(keywords2.begin(), keywords2.end(), specificKeyword);
|
||||
|
||||
if (search1 == keywords1.end() && search2 == keywords2.end()) {
|
||||
std::cout << "Testing specific keyword \"" << spesificKeyword << "\" in " << reference << ". Keyword not found in any of the cases ." << std::endl;
|
||||
OPM_THROW(std::runtime_error, "\nTesting spesific keyword \"" << spesificKeyword << "\" in " << reference << ". Keyword not found in any of the cases .");
|
||||
std::cout << "Testing specific keyword \"" << specificKeyword << "\" in " << reference << ". Keyword not found in any of the cases ." << std::endl;
|
||||
OPM_THROW(std::runtime_error, "\nTesting specific keyword \"" << specificKeyword << "\" in " << reference << ". Keyword not found in any of the cases .");
|
||||
}
|
||||
|
||||
eclArrType arrType;
|
||||
@@ -301,23 +301,23 @@ void ECLRegressionTest::checkSpesificKeyword(std::vector<std::string>& keywords1
|
||||
arrType = arrayType1[ind];
|
||||
|
||||
if (search2 == keywords2.end()) {
|
||||
std::cout << "Testing spesific kewyword in " << reference << ". Keyword found in fist case but not in second case." << std::endl;
|
||||
OPM_THROW(std::runtime_error, "\nTesting spesific kewyword in " << reference << ". Keyword found in fist case but not in second case.");
|
||||
std::cout << "Testing specific kewyword in " << reference << ". Keyword found in fist case but not in second case." << std::endl;
|
||||
OPM_THROW(std::runtime_error, "\nTesting specific kewyword in " << reference << ". Keyword found in fist case but not in second case.");
|
||||
}
|
||||
|
||||
keywords1.clear();
|
||||
arrayType1.clear();
|
||||
keywords1.push_back(spesificKeyword);
|
||||
keywords1.push_back(specificKeyword);
|
||||
arrayType1.push_back(arrType);
|
||||
|
||||
keywords2.clear();
|
||||
arrayType2.clear();
|
||||
keywords2.push_back(spesificKeyword);
|
||||
keywords2.push_back(specificKeyword);
|
||||
arrayType2.push_back(arrType);
|
||||
} else {
|
||||
if (search2 != keywords2.end()) {
|
||||
std::cout << "Testing spesific kewyword in " << reference << ". Keyword not found in fist case but found in second case." << std::endl;
|
||||
OPM_THROW(std::runtime_error, "\nTesting spesific kewyword in " << reference << ". Keyword not found in fist case but found in second case.");
|
||||
std::cout << "Testing specific kewyword in " << reference << ". Keyword not found in fist case but found in second case." << std::endl;
|
||||
OPM_THROW(std::runtime_error, "\nTesting specific kewyword in " << reference << ". Keyword not found in fist case but found in second case.");
|
||||
}
|
||||
|
||||
keywords1.clear();
|
||||
@@ -585,7 +585,7 @@ void ECLRegressionTest::results_init()
|
||||
} else {
|
||||
std::cout << "\nComparing init files \n" << std::endl;
|
||||
|
||||
if (spesificKeyword.empty()) {
|
||||
if (specificKeyword.empty()) {
|
||||
if (keywords1.size() == keywords2.size() && keywords1 != keywords2) {
|
||||
/*
|
||||
If the keywords come in different order in the two files
|
||||
@@ -693,23 +693,23 @@ void ECLRegressionTest::results_rst()
|
||||
|
||||
deviations.clear();
|
||||
|
||||
if (spesificSequence > -1) {
|
||||
auto search1 = std::find(seqnums1.begin(), seqnums1.end(), spesificSequence);
|
||||
auto search2 = std::find(seqnums2.begin(), seqnums2.end(), spesificSequence);
|
||||
if (specificSequence > -1) {
|
||||
auto search1 = std::find(seqnums1.begin(), seqnums1.end(), specificSequence);
|
||||
auto search2 = std::find(seqnums2.begin(), seqnums2.end(), specificSequence);
|
||||
|
||||
if (search1 == seqnums1.end()) {
|
||||
OPM_THROW(std::runtime_error, "\nSpecified sequence " << spesificSequence << " not found in restart files for case 1");
|
||||
OPM_THROW(std::runtime_error, "\nSpecified sequence " << specificSequence << " not found in restart files for case 1");
|
||||
}
|
||||
|
||||
if (search2 == seqnums2.end()) {
|
||||
OPM_THROW(std::runtime_error, "\nSpecified sequence " << spesificSequence << " not found in restart files for case 2");
|
||||
OPM_THROW(std::runtime_error, "\nSpecified sequence " << specificSequence << " not found in restart files for case 2");
|
||||
}
|
||||
|
||||
seqnums1.clear();
|
||||
seqnums1.push_back(spesificSequence);
|
||||
seqnums1.push_back(specificSequence);
|
||||
|
||||
seqnums2.clear();
|
||||
seqnums2.push_back(spesificSequence);
|
||||
seqnums2.push_back(specificSequence);
|
||||
|
||||
} else if (onlyLastSequence) {
|
||||
|
||||
@@ -791,7 +791,7 @@ void ECLRegressionTest::results_rst()
|
||||
if (printKeywordOnly) {
|
||||
printComparisonForKeywordLists(keywords1, keywords2, arrayType1, arrayType2);
|
||||
} else {
|
||||
if (spesificKeyword.empty()) {
|
||||
if (specificKeyword.empty()) {
|
||||
compareKeywords(keywords1, keywords2, reference);
|
||||
} else {
|
||||
checkSpesificKeyword(keywords1, keywords2, arrayType1, arrayType2, reference);
|
||||
@@ -946,7 +946,7 @@ void ECLRegressionTest::results_smry()
|
||||
printMissingKeywords(keywords1, keywords2);
|
||||
}
|
||||
} else {
|
||||
if (spesificKeyword.empty()) {
|
||||
if (specificKeyword.empty()) {
|
||||
compareKeywords(keywords1, keywords2, reference);
|
||||
} else {
|
||||
checkSpesificKeyword(keywords1, keywords2, arrayType1, arrayType2, reference);
|
||||
@@ -1114,7 +1114,7 @@ void ECLRegressionTest::results_rft()
|
||||
if (printKeywordOnly) {
|
||||
printComparisonForKeywordLists(keywords1, keywords2, arrayType1, arrayType2);
|
||||
} else {
|
||||
if (spesificKeyword.empty()) {
|
||||
if (specificKeyword.empty()) {
|
||||
compareKeywords(keywords1, keywords2, reference);
|
||||
} else {
|
||||
checkSpesificKeyword(keywords1, keywords2, arrayType1, arrayType2, reference);
|
||||
|
||||
@@ -80,10 +80,10 @@ public:
|
||||
}
|
||||
|
||||
void compareSpesificKeyword(std::string keyword) {
|
||||
this->spesificKeyword = std::move(keyword);
|
||||
this->specificKeyword = std::move(keyword);
|
||||
}
|
||||
void compareSpesificRstReportStepNumber(int seqn) {
|
||||
this->spesificSequence = seqn;
|
||||
this->specificSequence = seqn;
|
||||
}
|
||||
|
||||
void setLoadBaseRunData(bool loadArg) {
|
||||
@@ -177,11 +177,11 @@ private:
|
||||
|
||||
bool loadBaseRunData = false;
|
||||
|
||||
// spesific keyword to be compared
|
||||
std::string spesificKeyword;
|
||||
// specific keyword to be compared
|
||||
std::string specificKeyword;
|
||||
|
||||
// spesific restart sequence to be compared
|
||||
int spesificSequence = -1;
|
||||
// specific restart sequence to be compared
|
||||
int specificSequence = -1;
|
||||
|
||||
// Accept extra keywords in the restart file of the 'new' simulation.
|
||||
bool acceptExtraKeywords = false;
|
||||
|
||||
@@ -34,7 +34,7 @@ static void printHelp() {
|
||||
std::cout << "\nList all arrays found in an EclFile specified on the command line. \n\n"
|
||||
<< "\nThe program have one option which will only work on unified restart files:\n\n"
|
||||
<< "-h Print help and exit.\n"
|
||||
<< "-r List array for a spesific report time step number. Option only valid for a unified restart file. \n\n";
|
||||
<< "-r List array for a specific report time step number. Option only valid for a unified restart file. \n\n";
|
||||
}
|
||||
|
||||
void print_array_list(const std::vector<EclEntry>& array_list, const std::vector<int>& element_size)
|
||||
|
||||
@@ -42,7 +42,7 @@ static void printHelp() {
|
||||
<< "-l Only do comparison for the last Report Step. This option is only valid for restart files.\n"
|
||||
<< "-n Do not throw on errors.\n"
|
||||
<< "-p Print keywords in both cases and exit.\n"
|
||||
<< "-r compare a spesific report time step number in a restart file.\n"
|
||||
<< "-r compare a specific report time step number in a restart file.\n"
|
||||
<< "-t Specify ECLIPSE filetype to compare, (default behaviour is that all files are compared if found). Different possible arguments are:\n"
|
||||
<< " -t UNRST \t Compare two unified restart files (.UNRST). This the default value, so it is the same as not passing option -t.\n"
|
||||
<< " -t EGRID \t Compare two EGrid files (.EGRID).\n"
|
||||
@@ -216,7 +216,7 @@ int main(int argc, char** argv) {
|
||||
|
||||
if (integrationTest && specificFileType) {
|
||||
if (fileTypeString=="EGRID" || fileTypeString=="INIT" || fileTypeString=="RFT") {
|
||||
std::cerr << "Integration test and spesific file type, only valid for UNRST and SMRY" << std::endl;
|
||||
std::cerr << "Integration test and specific file type, only valid for UNRST and SMRY" << std::endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ static void printHelp() {
|
||||
<< "-h Print help and exit.\n"
|
||||
<< "-l List report step numbers in the selected restart file.\n"
|
||||
<< "-i Enforce IX standard on output file.\n"
|
||||
<< "-r Extract and convert a spesific report time step number from a unified restart file. \n\n";
|
||||
<< "-r Extract and convert a specific report time step number from a unified restart file. \n\n";
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
Reference in New Issue
Block a user