diff options
author | 2022-05-10 00:11:11 +0200 | |
---|---|---|
committer | 2022-05-09 22:11:11 +0000 | |
commit | e1808e6894519a68449a596d77db706d85d5aca0 (patch) | |
tree | c3d85c0474386eb9abbdf4b252517a292da85664 /Source/Diagnostics/ReducedDiags/LoadBalanceCosts.cpp | |
parent | 4217c76c39648358ec7a43c6cdf672d5e1ef8858 (diff) | |
download | WarpX-e1808e6894519a68449a596d77db706d85d5aca0.tar.gz WarpX-e1808e6894519a68449a596d77db706d85d5aca0.tar.zst WarpX-e1808e6894519a68449a596d77db706d85d5aca0.zip |
Fix miscellaneous issues found with clang tidy (#3083)
* fix miscellaneous issues found with clang tidy
* fix miscellaneous issues found with clang tidy
* moved default constructors and destructors to header
* fix issue
* Use default again
Diffstat (limited to 'Source/Diagnostics/ReducedDiags/LoadBalanceCosts.cpp')
-rw-r--r-- | Source/Diagnostics/ReducedDiags/LoadBalanceCosts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.cpp b/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.cpp index 7e8d42cf0..6e7ea409d 100644 --- a/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.cpp +++ b/Source/Diagnostics/ReducedDiags/LoadBalanceCosts.cpp @@ -179,7 +179,7 @@ void LoadBalanceCosts::ComputeDiags (int step) // get the string lengths on IO proc ParallelDescriptor::Gather(&length, 1, // send - &m_data_string_recvcount[0], 1, // receive + m_data_string_recvcount.data(), 1, // receive ParallelDescriptor::IOProcessorNumber()); // determine total length of collected strings for root, and set displacements; @@ -205,7 +205,7 @@ void LoadBalanceCosts::ComputeDiags (int step) // collect the hostnames; m_data_string_recvbuf will provide mapping from rank-->hostname ParallelDescriptor::Gatherv(&hostname[0], /* hostname ID */ length, /* length of hostname */ - &m_data_string_recvbuf[0], /* write data into string buffer */ + m_data_string_recvbuf.data(), /* write data into string buffer */ m_data_string_recvcount, /* how many messages to receive */ m_data_string_disp, /* starting position in recv buffer to place received msg */ ParallelDescriptor::IOProcessorNumber()); |