Skip to content

Commit

Permalink
Added options.DEEP_ESOIL to mpi list.
Browse files Browse the repository at this point in the history
  • Loading branch information
ted committed May 26, 2019
1 parent 211fa1c commit d532cf3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vic/drivers/shared_image/src/vic_mpi_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ create_MPI_option_struct_type(MPI_Datatype *mpi_type)
MPI_Datatype *mpi_types;

// nitems has to equal the number of elements in option_struct
nitems = 67;
nitems = 68;
blocklengths = malloc(nitems * sizeof(*blocklengths));
check_alloc_status(blocklengths, "Memory allocation error.");

Expand Down Expand Up @@ -562,6 +562,10 @@ create_MPI_option_struct_type(MPI_Datatype *mpi_type)
offsets[i] = offsetof(option_struct, CROPSPLIT);
mpi_types[i++] = MPI_C_BOOL;

// bool DEEP_ESOIL;
offsets[i] = offsetof(option_struct, DEEP_ESOIL);
mpi_types[i++] = MPI_C_BOOL;

// bool EQUAL_AREA;
offsets[i] = offsetof(option_struct, EQUAL_AREA);
mpi_types[i++] = MPI_C_BOOL;
Expand Down

0 comments on commit d532cf3

Please sign in to comment.