@@ -114,13 +114,13 @@ int main(int argc, char** argv) {
114
114
if (getcwd (slot_path, sizeof (slot_path)) == NULL )
115
115
fprintf (stderr," ..getcwd returned an error\n " );
116
116
else
117
- fprintf (stderr," Current working directory is: %s\n " ,slot_path);
117
+ fprintf (stderr," Working directory is: %s\n " ,slot_path);
118
118
119
119
if (!boinc_is_standalone ()) {
120
120
121
121
// Get the project path
122
122
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 ());
124
124
125
125
// Get the app version and re-parse to add a dot
126
126
version = std::to_string (dataBOINC.app_version );
@@ -141,20 +141,20 @@ int main(int argc, char** argv) {
141
141
return 1 ;
142
142
}
143
143
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 ());
147
147
}
148
148
// Running in standalone
149
149
else {
150
150
fprintf (stderr," Running in standalone mode\n " );
151
151
// Set the project path
152
152
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 ());
154
154
155
155
// In standalone get the app version from the command line
156
156
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 ());
158
158
fprintf (stderr," (argv8) app_version: %s\n " ,argv[8 ]);
159
159
}
160
160
@@ -487,7 +487,7 @@ int main(int argc, char** argv) {
487
487
return 1 ;
488
488
}
489
489
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);
491
491
492
492
// Set the OMP_NUM_THREADS environmental variable, the number of threads
493
493
std::string OMP_NUM_var = std::string (" OMP_NUM_THREADS=" ) + std::to_string (NTHREADS);
@@ -496,7 +496,7 @@ int main(int argc, char** argv) {
496
496
return 1 ;
497
497
}
498
498
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);
500
500
501
501
// Set the OMP_SCHEDULE environmental variable, this enforces static thread scheduling
502
502
std::string OMP_SCHED_var = std::string (" OMP_SCHEDULE=STATIC" );
@@ -505,7 +505,7 @@ int main(int argc, char** argv) {
505
505
return 1 ;
506
506
}
507
507
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);
509
509
510
510
// Set the DR_HOOK environmental variable, this controls the tracing facility in OpenIFS, off=0 and on=1
511
511
std::string DR_HOOK_var = std::string (" DR_HOOK=1" );
@@ -514,7 +514,7 @@ int main(int argc, char** argv) {
514
514
return 1 ;
515
515
}
516
516
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);
518
518
519
519
// Set the DR_HOOK_HEAPCHECK environmental variable, this ensures the heap size statistics are reported
520
520
std::string DR_HOOK_HEAP_var = std::string (" DR_HOOK_HEAPCHECK=no" );
@@ -523,7 +523,7 @@ int main(int argc, char** argv) {
523
523
return 1 ;
524
524
}
525
525
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);
527
527
528
528
// Set the DR_HOOK_STACKCHECK environmental variable, this ensures the stack size statistics are reported
529
529
std::string DR_HOOK_STACK_var = std::string (" DR_HOOK_STACKCHECK=no" );
@@ -532,7 +532,7 @@ int main(int argc, char** argv) {
532
532
return 1 ;
533
533
}
534
534
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);
536
536
537
537
// Set the OMP_STACKSIZE environmental variable, OpenIFS needs more stack memory per process
538
538
std::string OMP_STACK_var = std::string (" OMP_STACKSIZE=128M" );
@@ -541,7 +541,7 @@ int main(int argc, char** argv) {
541
541
return 1 ;
542
542
}
543
543
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);
545
545
546
546
547
547
// Check for the existence of the namelist
@@ -615,11 +615,11 @@ int main(int argc, char** argv) {
615
615
last_upload = std::stoi (last_upload_node->value ());
616
616
model_completed = std::stoi (model_completed_node->value ());
617
617
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);
623
623
}
624
624
else {
625
625
// Progress file not present, so create a progress file
@@ -848,7 +848,7 @@ int main(int argc, char** argv) {
848
848
fprintf (stderr," Adding to the zip: %s\n " ,(temp_path+std::string (" /ICMGG" )+exptid+" +" +second_part).c_str ());
849
849
zfl.push_back (temp_path+std::string (" /ICMGG" )+exptid+" +" +second_part);
850
850
// 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());
852
852
}
853
853
854
854
// Add ICMSH result files to zip to be uploaded
@@ -1420,11 +1420,11 @@ std::string getTag(const std::string &filename) {
1420
1420
void process_trickle (double current_cpu_time,const char * wu_name,const char * result_name,const char * slot_path,int timestep) {
1421
1421
char * trickle = new char [512 ];
1422
1422
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);
1428
1428
1429
1429
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 " ,\
1430
1430
wu_name,result_name, timestep,(long ) current_cpu_time);
0 commit comments