Skip to content

Commit

Permalink
added particle_t_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
janhclem committed Feb 24, 2025
1 parent 6b4a592 commit 5c45d7c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/mptrac.c
Original file line number Diff line number Diff line change
Expand Up @@ -12139,7 +12139,6 @@ void dd_communicate_particles(

/* Wait for all signals to be send... */
MPI_Barrier(MPI_COMM_WORLD);

/* Recieving... */
for (int isourc = 0; isourc < ndestinations; isourc++) {

Expand Down
21 changes: 21 additions & 0 deletions src/mptrac.h
Original file line number Diff line number Diff line change
Expand Up @@ -3235,6 +3235,27 @@ typedef struct {

} particle_t;

typedef struct {

/*! Time [s]. */
double* time;

/*! Pressure [hPa]. */
double* p;

/*! Longitude [deg]. */
double* lon;

/*! Latitude [deg]. */
double* lat;

/*! Quantity data (for various, user-defined attributes). */
double* q[NQ];

} particle_ptr_t;



/**
* @brief Cache data structure.
*
Expand Down

0 comments on commit 5c45d7c

Please sign in to comment.