Skip to content

Commit

Permalink
Fix for NVIDIA C compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
lars2015 committed Aug 16, 2023
1 parent 0311ed7 commit 3a6f246
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/libtrac.c
Original file line number Diff line number Diff line change
Expand Up @@ -5770,9 +5770,10 @@ void write_grid(
/* Allocate... */
ALLOC(cd, double,
ctl->grid_nx * ctl->grid_ny * ctl->grid_nz);
for (int iq = 0; iq < ctl->nq; iq++)
for (int iq = 0; iq < ctl->nq; iq++) {
ALLOC(mean[iq], double,
ctl->grid_nx * ctl->grid_ny * ctl->grid_nz);
}
ALLOC(vmr_impl, double,
ctl->grid_nx * ctl->grid_ny * ctl->grid_nz);
ALLOC(z, double,
Expand Down
6 changes: 3 additions & 3 deletions src/libtrac.h
Original file line number Diff line number Diff line change
Expand Up @@ -1090,13 +1090,13 @@ typedef struct {

/*! ZFP compression precision (for all variables, except z and T). */
int met_zfp_prec;

/*! ZFP compression tolerance (for temperature). */
double met_zfp_tol_t;

/*! ZFP compression tolerance (for geopotential height). */
double met_zfp_tol_z;

/*! Stride for longitudes. */
int met_dx;

Expand Down

0 comments on commit 3a6f246

Please sign in to comment.