Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
yoctoyotta1024 committed Aug 17, 2024
1 parent f598954 commit bdc10d1
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions libs/coupldyn_yac/yac_cartesian_dynamics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Author: Clara Bayley (CB)
* Additional Contributors:
* -----
* Last Modified: Friday 16th August 2024
* Last Modified: Saturday 17th August 2024
* Modified By: CB
* -----
* License: BSD 3-Clause "New" or "Revised" License
Expand All @@ -36,7 +36,6 @@

#include "initialise/config.hpp"


/* contains 1-D vector for each (thermo)dynamic
variable which is ordered by gridbox at every timestep
e.g. press = [p_gbx0(t0), p_gbx1(t0), ,... , p_gbxN(t0),
Expand Down Expand Up @@ -73,9 +72,9 @@ struct CartesianDynamics {
int vertical_wind_yac_id;

// Containers to receive data from YAC
double ** yac_raw_cell_data;
double ** yac_raw_edge_data;
double ** yac_raw_vertical_wind_data;
double **yac_raw_cell_data;
double **yac_raw_edge_data;
double **yac_raw_vertical_wind_data;

/* --- Private functions --- */

Expand Down Expand Up @@ -124,9 +123,9 @@ struct CartesianDynamics {
/* Public call to receive data from YAC
* If the problem is 2D turns into a wrapper for receive_hor_slice_from_yac */
void receive_fields_from_yac();
void receive_yac_field(unsigned int field_type, unsigned int yac_field_id,
double ** yac_raw_data, std::vector<double> & target_array,
size_t vertical_levels, double conversion_factor);
void receive_yac_field(unsigned int field_type, unsigned int yac_field_id, double **yac_raw_data,
std::vector<double> &target_array, size_t vertical_levels,
double conversion_factor);
};

/* type satisfying CoupledDyanmics solver concept
Expand All @@ -139,9 +138,7 @@ struct YacDynamics {
std::shared_ptr<CartesianDynamics> dynvars; // pointer to (thermo)dynamic variables

/* Calls the get operations to receive data from YAC for each of the fields of interest */
void run_dynamics(const unsigned int t_mdl) const {
dynvars->receive_fields_from_yac();
}
void run_dynamics(const unsigned int t_mdl) const { dynvars->receive_fields_from_yac(); }

public:
YacDynamics(const Config &config, const unsigned int couplstep, const std::array<size_t, 3> ndims,
Expand Down

0 comments on commit bdc10d1

Please sign in to comment.