Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit 72cead5

Browse files
authored
Changing case of variable names from upper to lower case
1 parent 9d3dcbf commit 72cead5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

openifs.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ int main(int argc, char** argv) {
6767

6868
// Set defaults for input arguments
6969
std::string OIFS_EXPID; // model experiment id, must match string in filenames
70-
std::string NAMELIST="fort.4"; // NAMELIST file, this name is fixed
70+
std::string namelist="fort.4"; // namelist file, this name is fixed
7171

7272
// Initialise BOINC
7373
boinc_init();
@@ -242,13 +242,13 @@ int main(int argc, char** argv) {
242242

243243

244244
// Parse the fort.4 namelist for the filenames and variables
245-
std::string namelist_file = slot_path + std::string("/") + NAMELIST;
245+
std::string namelist_file = slot_path + std::string("/") + namelist;
246246
std::string namelist_line="",nss="",delimiter="=";
247247
std::ifstream namelist_filestream;
248248

249249
// Check for the existence of the namelist
250250
if( !file_exists(namelist_file) ) {
251-
fprintf(stderr,"..The namelist file %s does not exist\n",NAMELIST.c_str());
251+
fprintf(stderr,"..The namelist file %s does not exist\n",namelist.c_str());
252252
return 1; // should terminate, the model won't run.
253253
}
254254

@@ -325,11 +325,11 @@ int main(int argc, char** argv) {
325325

326326

327327
// Process the ic_ancil_file:
328-
std::string ic_ancil_zip = slot_path + std::string("/") + IC_ANCIL_FILE + std::string(".zip");
328+
std::string ic_ancil_zip = slot_path + std::string("/") + ic_ancil_file + std::string(".zip");
329329

330330
// For transfer downloading, BOINC renames download files to jf_HEXADECIMAL-NUMBER, these files
331331
// need to be renamed back to the original name
332-
// Get the name of the 'jf_' filename from a link within the IC_ANCIL_FILE
332+
// Get the name of the 'jf_' filename from a link within the ic_ancil_file
333333
std::string ic_ancil_source = getTag(ic_ancil_zip);
334334

335335
// Copy the IC ancils to working directory

0 commit comments

Comments
 (0)