Skip to content

Commit

Permalink
astyle
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros committed Mar 7, 2024
1 parent 2256dfc commit f1e983f
Show file tree
Hide file tree
Showing 3 changed files with 213 additions and 213 deletions.
4 changes: 2 additions & 2 deletions mdal/frmts/mdal_3di.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ MDAL::CF3DiDataset2D::CF3DiDataset2D( MDAL::DatasetGroup *parent,
size_t values,
size_t ts,
std::shared_ptr<NetCDFFile> ncFile,
std::vector<size_t> mask)
std::vector<size_t> mask )
: CFDataset2D( parent,
fill_val_x,
fill_val_y,
Expand All @@ -560,7 +560,7 @@ MDAL::CF3DiDataset2D::CF3DiDataset2D( MDAL::DatasetGroup *parent,
timesteps,
values,
ts,
ncFile)
ncFile )
, mRequestedMeshFaceIds( mask )
{
}
Expand Down
14 changes: 7 additions & 7 deletions mdal/frmts/mdal_cf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,16 +252,16 @@ MDAL::cfdataset_info_map MDAL::DriverCF::parseDatasetGroupInfo()
}

void MDAL::CFDataset2D::populate_vector_vals( double *vals, size_t i,
const std::vector<double> &vals_x, const std::vector<double> &vals_y,
size_t idx, double fill_val_x, double fill_val_y )
const std::vector<double> &vals_x, const std::vector<double> &vals_y,
size_t idx, double fill_val_x, double fill_val_y )
{
vals[2 * i] = MDAL::safeValue( vals_x[idx], fill_val_x );
vals[2 * i + 1] = MDAL::safeValue( vals_y[idx], fill_val_y );
}

void MDAL::CFDataset2D::populate_polar_vector_vals( double *vals, size_t i,
const std::vector<double> &vals_x, const std::vector<double> &vals_y,
size_t idx, double fill_val_x, double fill_val_y, std::pair<double, double> referenceAngles )
const std::vector<double> &vals_x, const std::vector<double> &vals_y,
size_t idx, double fill_val_x, double fill_val_y, std::pair<double, double> referenceAngles )
{
double magnitude = MDAL::safeValue( vals_x[idx], fill_val_x );
double direction = MDAL::safeValue( vals_y[idx], fill_val_y );
Expand All @@ -273,9 +273,9 @@ void MDAL::CFDataset2D::populate_polar_vector_vals( double *vals, size_t i,
}

void MDAL::CFDataset2D::populate_scalar_vals( double *vals, size_t i,
const std::vector<double> &rawVals,
size_t idx,
double fill_val )
const std::vector<double> &rawVals,
size_t idx,
double fill_val )
{
vals[i] = MDAL::safeValue( rawVals[idx], fill_val );
}
Expand Down
Loading

0 comments on commit f1e983f

Please sign in to comment.