Skip to content

Commit

Permalink
Fix netcdf built
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf committed Oct 2, 2024
1 parent a0dd0a8 commit 0ce7375
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion amr-wind/utilities/sampling/DTUSpinnerSampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ void DTUSpinnerSampler::output_netcdf_data(
counti[1] = num_points();

const auto& locs = sample_locs.locations();
xyz.put(locs[0].data(), start, count);
xyz.put(locs[0].begin(), start, count);

auto n_samples = m_beam_points * m_ntotal;

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/utilities/sampling/FreeSurfaceSampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ void FreeSurfaceSampler::output_netcdf_data(
auto xyz = grp.var("points");
count[1] = num_output_points();
const auto& locs = sample_locs.locations();
xyz.put(locs[0].data(), start, count);
xyz.put(locs[0].begin(), start, count);
}
#else
void FreeSurfaceSampler::define_netcdf_metadata(
Expand Down
2 changes: 1 addition & 1 deletion amr-wind/utilities/sampling/LidarSampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void LidarSampler::output_netcdf_data(
auto xyz = grp.var("points");
count[1] = num_points();
const auto& locs = sample_locs.locations();
xyz.put(locs[0].data(), start, count);
xyz.put(locs[0].begin(), start, count);
}
#else
void LidarSampler::define_netcdf_metadata(
Expand Down
4 changes: 2 additions & 2 deletions amr-wind/utilities/sampling/RadarSampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ void RadarSampler::output_netcdf_data(
count[1] = num_output_points();
auto xyz = grp.var("points");
const auto& locs = sample_locs.locations();
xyz.put(locs[0].data(), start, count);
xyz.put(locs[0].begin(), start, count);

if (m_output_cone_points) {
std::vector<size_t> cone_start{nt, 0, 0};
Expand All @@ -580,7 +580,7 @@ void RadarSampler::output_netcdf_data(
cone_count[1] = num_points();
auto cone_xyz = grp.var("conepoints");
const auto& clocs = sample_locs.locations();
cone_xyz.put(clocs[0].data(), cone_start, cone_count);
cone_xyz.put(clocs[0].begin(), cone_start, cone_count);
}
}

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/utilities/sampling/Sampling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ void Sampling::prepare_netcdf_file()
auto xyz = grp.var("coordinates");
count[0] = obj->num_output_points();
const auto& locs = sample_locs.locations();
xyz.put(locs[0].data(), start, count);
xyz.put(locs[0].begin(), start, count);
}
}

Expand Down

0 comments on commit 0ce7375

Please sign in to comment.