Skip to content

Commit

Permalink
turned on intel test again
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Oct 31, 2024
1 parent 607596a commit 68c52aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

- name: build
run: |
cmake -S g2c -B g2c/build -DJasper_ROOT=$GITHUB_WORKSPACE/nceplibs/jasper -DBUILD_G2C=OFF
cmake -S g2c -B g2c/build -DJasper_ROOT=$GITHUB_WORKSPACE/nceplibs/jasper
cmake --build g2c/build --parallel 2 --verbose
- name: Perform CodeQL Analysis
Expand Down
8 changes: 6 additions & 2 deletions src/g2cdegrib2.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,9 @@ g2c_get_level_desc(int ipdtn, long long int *ipdtmpl, char *level_desc)
*
* @param g2cid Indentifier for the file, returned by g2c_open() or
* g2c_create().
* @parm ave_round Number of digits to show for average. This is
* useful for limiting the difference of the "AVE" value between
* different compilers, which wil...
* @param fileout Path of output file. Any existing file of this name
* will be overwritten.
*
Expand Down Expand Up @@ -680,7 +683,8 @@ g2c_degrib2(int g2cid, const char *fileout)
char level_desc[G2C_MAX_TYPE_OF_FIXED_SURFACE_LEN + 1];
char date_time[100 + 1];
float *data = NULL;
float total = 0.0, max = 0.0, min = 0.0, avg = 0;
double total = 0.0, avg = 0;
float max = 0.0, min = 0.0;
int t;

fprintf(f, "\n");
Expand Down Expand Up @@ -828,7 +832,7 @@ g2c_degrib2(int g2cid, const char *fileout)
avg = total / sec5_info->num_data_points;
}
fprintf(f, "( PARM= %s ) : MIN=%25.8f AVE=%25.8f MAX=%25.8f\n",
abbrev, min, avg, max);
abbrev, min, (float)avg, max);

/* Free the data. */
if (sec5_info->num_data_points)
Expand Down

0 comments on commit 68c52aa

Please sign in to comment.