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

Commit 77446a3

Browse files
authored
Minor change: commenting out unnecessary print statement
1 parent 7c9fde3 commit 77446a3

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

openifs.cpp

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ int main(int argc, char** argv) {
114114
if (getcwd(slot_path, sizeof(slot_path)) == NULL)
115115
fprintf(stderr,"..getcwd returned an error\n");
116116
else
117-
fprintf(stderr,"Current working directory is: %s\n",slot_path);
117+
fprintf(stderr,"Working directory is: %s\n",slot_path);
118118

119119
if (!boinc_is_standalone()) {
120120

121121
// Get the project path
122122
project_path = dataBOINC.project_dir + std::string("/");
123-
fprintf(stderr,"Current project directory is: %s\n",project_path.c_str());
123+
fprintf(stderr,"Project directory is: %s\n",project_path.c_str());
124124

125125
// Get the app version and re-parse to add a dot
126126
version = std::to_string(dataBOINC.app_version);
@@ -141,20 +141,20 @@ int main(int argc, char** argv) {
141141
return 1;
142142
}
143143

144-
fprintf(stderr,"The current app is: %s\n",app_name.c_str());
145-
fprintf(stderr,"The current version is: %s\n",version.c_str());
146-
fprintf(stderr,"The current result_name is: %s\n",result_name.c_str());
144+
fprintf(stderr,"app name: %s\n",app_name.c_str());
145+
fprintf(stderr,"version: %s\n",version.c_str());
146+
fprintf(stderr,"result_name: %s\n",result_name.c_str());
147147
}
148148
// Running in standalone
149149
else {
150150
fprintf(stderr,"Running in standalone mode\n");
151151
// Set the project path
152152
project_path = slot_path + std::string("/../projects/");
153-
fprintf(stderr,"Current project directory is: %s\n",project_path.c_str());
153+
fprintf(stderr,"Project directory is: %s\n",project_path.c_str());
154154

155155
// In standalone get the app version from the command line
156156
version = argv[8];
157-
fprintf(stderr,"The current app is: %s\n",app_name.c_str());
157+
fprintf(stderr,"app name: %s\n",app_name.c_str());
158158
fprintf(stderr,"(argv8) app_version: %s\n",argv[8]);
159159
}
160160

@@ -487,7 +487,7 @@ int main(int argc, char** argv) {
487487
return 1;
488488
}
489489
pathvar = getenv("OIFS_DUMMY_ACTION");
490-
fprintf(stderr,"The OIFS_DUMMY_ACTION environmental variable is: %s\n",pathvar);
490+
//fprintf(stderr,"The OIFS_DUMMY_ACTION environmental variable is: %s\n",pathvar);
491491

492492
// Set the OMP_NUM_THREADS environmental variable, the number of threads
493493
std::string OMP_NUM_var = std::string("OMP_NUM_THREADS=") + std::to_string(NTHREADS);
@@ -496,7 +496,7 @@ int main(int argc, char** argv) {
496496
return 1;
497497
}
498498
pathvar = getenv("OMP_NUM_THREADS");
499-
fprintf(stderr,"The OMP_NUM_THREADS environmental variable is: %s\n",pathvar);
499+
//fprintf(stderr,"The OMP_NUM_THREADS environmental variable is: %s\n",pathvar);
500500

501501
// Set the OMP_SCHEDULE environmental variable, this enforces static thread scheduling
502502
std::string OMP_SCHED_var = std::string("OMP_SCHEDULE=STATIC");
@@ -505,7 +505,7 @@ int main(int argc, char** argv) {
505505
return 1;
506506
}
507507
pathvar = getenv("OMP_SCHEDULE");
508-
fprintf(stderr,"The OMP_SCHEDULE environmental variable is: %s\n",pathvar);
508+
//fprintf(stderr,"The OMP_SCHEDULE environmental variable is: %s\n",pathvar);
509509

510510
// Set the DR_HOOK environmental variable, this controls the tracing facility in OpenIFS, off=0 and on=1
511511
std::string DR_HOOK_var = std::string("DR_HOOK=1");
@@ -514,7 +514,7 @@ int main(int argc, char** argv) {
514514
return 1;
515515
}
516516
pathvar = getenv("DR_HOOK");
517-
fprintf(stderr,"The DR_HOOK environmental variable is: %s\n",pathvar);
517+
//fprintf(stderr,"The DR_HOOK environmental variable is: %s\n",pathvar);
518518

519519
// Set the DR_HOOK_HEAPCHECK environmental variable, this ensures the heap size statistics are reported
520520
std::string DR_HOOK_HEAP_var = std::string("DR_HOOK_HEAPCHECK=no");
@@ -523,7 +523,7 @@ int main(int argc, char** argv) {
523523
return 1;
524524
}
525525
pathvar = getenv("DR_HOOK_HEAPCHECK");
526-
fprintf(stderr,"The DR_HOOK_HEAPCHECK environmental variable is: %s\n",pathvar);
526+
//fprintf(stderr,"The DR_HOOK_HEAPCHECK environmental variable is: %s\n",pathvar);
527527

528528
// Set the DR_HOOK_STACKCHECK environmental variable, this ensures the stack size statistics are reported
529529
std::string DR_HOOK_STACK_var = std::string("DR_HOOK_STACKCHECK=no");
@@ -532,7 +532,7 @@ int main(int argc, char** argv) {
532532
return 1;
533533
}
534534
pathvar = getenv("DR_HOOK_STACKCHECK");
535-
fprintf(stderr, "The DR_HOOK_STACKCHECK environmental variable is: %s\n",pathvar);
535+
//fprintf(stderr, "The DR_HOOK_STACKCHECK environmental variable is: %s\n",pathvar);
536536

537537
// Set the OMP_STACKSIZE environmental variable, OpenIFS needs more stack memory per process
538538
std::string OMP_STACK_var = std::string("OMP_STACKSIZE=128M");
@@ -541,7 +541,7 @@ int main(int argc, char** argv) {
541541
return 1;
542542
}
543543
pathvar = getenv("OMP_STACKSIZE");
544-
fprintf(stderr,"The OMP_STACKSIZE environmental variable is: %s\n",pathvar);
544+
//fprintf(stderr,"The OMP_STACKSIZE environmental variable is: %s\n",pathvar);
545545

546546

547547
// Check for the existence of the namelist
@@ -615,11 +615,11 @@ int main(int argc, char** argv) {
615615
last_upload = std::stoi(last_upload_node->value());
616616
model_completed = std::stoi(model_completed_node->value());
617617

618-
printf("last_cpu_time: %i\n",last_cpu_time);
619-
printf("upload_file_number: %i\n",upload_file_number);
620-
printf("last_iter: %s\n",last_iter.c_str());
621-
printf("last_upload: %i\n",last_upload);
622-
printf("model_completed: %i\n",model_completed);
618+
//printf("last_cpu_time: %i\n",last_cpu_time);
619+
//printf("upload_file_number: %i\n",upload_file_number);
620+
//printf("last_iter: %s\n",last_iter.c_str());
621+
//printf("last_upload: %i\n",last_upload);
622+
//printf("model_completed: %i\n",model_completed);
623623
}
624624
else {
625625
// Progress file not present, so create a progress file
@@ -848,7 +848,7 @@ int main(int argc, char** argv) {
848848
fprintf(stderr,"Adding to the zip: %s\n",(temp_path+std::string("/ICMGG")+exptid+"+"+second_part).c_str());
849849
zfl.push_back(temp_path+std::string("/ICMGG")+exptid+"+"+second_part);
850850
// Delete the file that has been added to the zip
851-
// std::remove((temp_path+std::string("/ICMGG")+exptid+"+"+second_part).c_str());
851+
// std::remove((temp_path+std::string("/ICMGG")+exptid+"+"+second_part).c_str());
852852
}
853853

854854
// Add ICMSH result files to zip to be uploaded
@@ -1420,11 +1420,11 @@ std::string getTag(const std::string &filename) {
14201420
void process_trickle(double current_cpu_time,const char* wu_name,const char* result_name,const char* slot_path,int timestep) {
14211421
char* trickle = new char[512];
14221422

1423-
fprintf(stderr,"current_cpu_time: %f\n",current_cpu_time);
1424-
fprintf(stderr,"wu_name: %s\n",wu_name);
1425-
fprintf(stderr,"result_name: %s\n",result_name);
1426-
fprintf(stderr,"slot_path: %s\n",slot_path);
1427-
fprintf(stderr,"timestep: %d\n",timestep);
1423+
//fprintf(stderr,"current_cpu_time: %f\n",current_cpu_time);
1424+
//fprintf(stderr,"wu_name: %s\n",wu_name);
1425+
//fprintf(stderr,"result_name: %s\n",result_name);
1426+
//fprintf(stderr,"slot_path: %s\n",slot_path);
1427+
//fprintf(stderr,"timestep: %d\n",timestep);
14281428

14291429
std::sprintf(trickle, "<wu>%s</wu>\n<result>%s</result>\n<ph></ph>\n<ts>%d</ts>\n<cp>%ld</cp>\n<vr></vr>\n",\
14301430
wu_name,result_name, timestep,(long) current_cpu_time);

0 commit comments

Comments
 (0)