[cig-commits] [commit] kommu/aspect-citcom-benchmarks: Changed output_volume_avg to write to a single file with output in the following format: cycle time <T> <V_rms> (e2625af)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Tue Apr 8 03:01:08 PDT 2014
Repository : ssh://geoshell/citcoms
On branch : kommu/aspect-citcom-benchmarks
Link : https://github.com/geodynamics/citcoms/compare/3ebabdc12f5b4e8d7db6edbc2cc578201d4477bf...fb1839e7e93bc56eb542afd64b3db70f2df6a5d8
>---------------------------------------------------------------
commit e2625af607d730442bfe1477ce78e71d35dc0e20
Author: Rajesh Kommu <rajesh.kommu at gmail.com>
Date: Mon Mar 31 15:32:52 2014 -0700
Changed output_volume_avg to write to a single file with output in the following
format:
cycle time <T> <V_rms>
>---------------------------------------------------------------
e2625af607d730442bfe1477ce78e71d35dc0e20
lib/Output.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/lib/Output.c b/lib/Output.c
index 353b3b0..aae7abb 100644
--- a/lib/Output.c
+++ b/lib/Output.c
@@ -576,14 +576,12 @@ void output_volume_avg(struct All_variables *E, int cycles)
/* compute horizontal average here.... */
compute_volume_avg(E, &T_avg, &V_rms_avg);
- /* only the first nprocz processors need to output */
-
if (E->parallel.me == 0)
{
- sprintf(output_file,"%s.volume_avg.%d.%d", E->control.data_file,
- E->parallel.me, cycles);
- fp1=fopen(output_file,"w");
- fprintf(fp1,"%.4e %.4e\n", T_avg, V_rms_avg);
+ sprintf(output_file,"%s.volume_avg", E->control.data_file);
+ fp1=fopen(output_file,"a");
+ fprintf(fp1,"%d %.4e %.4e %.4e\n",
+ cycles, E->monitor.elapsed_time, T_avg, V_rms_avg);
fclose(fp1);
}
}
More information about the CIG-COMMITS
mailing list