&*work.begin(),
&lwork,
&info);
- lwork = work[0];
+ lwork = static_cast<int>(work[0]);
work.resize(lwork);
syev(&jobz,
&uplo,
&*work.begin(),
&lwork,
&info);
- lwork = work[0];
+ lwork = static_cast<int>(work[0]);
work.resize(lwork);
syev(&jobz,
&uplo,
&*work.begin(),
&lwork,
&info);
- lwork = work[0];
+ lwork = static_cast<int>(work[0]);
work.resize(lwork);
syev(&jobz,
&uplo,
&*work.begin(),
&lwork,
&info);
- lwork = work[0];
+ lwork = static_cast<int>(work[0]);
work.resize(lwork);
syev(&jobz,
&uplo,
std::cout << std::setprecision(10);
ConditionalOStream pcout(std::cout, (this_mpi_process == 0));
- const unsigned int proc_rows = std::floor(std::sqrt(n_mpi_processes));
- const unsigned int proc_columns = std::floor(n_mpi_processes / proc_rows);
+ const auto proc_rows =
+ static_cast<unsigned int>(std::floor(std::sqrt(n_mpi_processes)));
+ const auto proc_columns =
+ static_cast<unsigned int>(std::floor(n_mpi_processes / proc_rows));
// create 2d process grid
std::shared_ptr<Utilities::MPI::ProcessGrid> grid =
std::make_shared<Utilities::MPI::ProcessGrid>(mpi_communicator,
std::cout << std::setprecision(10);
ConditionalOStream pcout(std::cout, (this_mpi_process == 0));
- const unsigned int proc_rows = std::floor(std::sqrt(n_mpi_processes));
- const unsigned int proc_columns = std::floor(n_mpi_processes / proc_rows);
+ const auto proc_rows =
+ static_cast<unsigned int>(std::floor(std::sqrt(n_mpi_processes)));
+ const auto proc_columns =
+ static_cast<unsigned int>(std::floor(n_mpi_processes / proc_rows));
// create 2d process grid
std::shared_ptr<Utilities::MPI::ProcessGrid> grid =
std::make_shared<Utilities::MPI::ProcessGrid>(mpi_communicator,
std::cout << std::setprecision(10);
ConditionalOStream pcout(std::cout, (this_mpi_process == 0));
- const unsigned int proc_rows = std::floor(std::sqrt(n_mpi_processes));
- const unsigned int proc_columns = std::floor(n_mpi_processes / proc_rows);
+ const auto proc_rows =
+ static_cast<unsigned int>(std::floor(std::sqrt(n_mpi_processes)));
+ const auto proc_columns =
+ static_cast<unsigned int>(std::floor(n_mpi_processes / proc_rows));
// create 2d process grid
std::shared_ptr<Utilities::MPI::ProcessGrid> grid =
std::make_shared<Utilities::MPI::ProcessGrid>(mpi_communicator,
std::cout << std::setprecision(10);
ConditionalOStream pcout(std::cout, (this_mpi_process == 0));
- const unsigned int proc_rows = std::floor(std::sqrt(n_mpi_processes));
- const unsigned int proc_columns = std::floor(n_mpi_processes / proc_rows);
+ const auto proc_rows =
+ static_cast<unsigned int>(std::floor(std::sqrt(n_mpi_processes)));
+ const auto proc_columns =
+ static_cast<unsigned int>(std::floor(n_mpi_processes / proc_rows));
// create 2d process grid
std::shared_ptr<Utilities::MPI::ProcessGrid> grid =
std::make_shared<Utilities::MPI::ProcessGrid>(mpi_communicator,
std::cout << std::setprecision(10);
ConditionalOStream pcout(std::cout, (this_mpi_process == 0));
- const unsigned int proc_rows = std::floor(std::sqrt(n_mpi_processes));
- const unsigned int proc_columns = std::floor(n_mpi_processes / proc_rows);
+ const auto proc_rows =
+ static_cast<unsigned int>(std::floor(std::sqrt(n_mpi_processes)));
+ const auto proc_columns =
+ static_cast<unsigned int>(std::floor(n_mpi_processes / proc_rows));
// create 2d process grid
std::shared_ptr<Utilities::MPI::ProcessGrid> grid =
std::make_shared<Utilities::MPI::ProcessGrid>(mpi_communicator,
std::cout << std::setprecision(10);
ConditionalOStream pcout(std::cout, (this_mpi_process == 0));
- const unsigned int proc_rows = std::floor(std::sqrt(n_mpi_processes));
- const unsigned int proc_columns = std::floor(n_mpi_processes / proc_rows);
+ const auto proc_rows =
+ static_cast<unsigned int>(std::floor(std::sqrt(n_mpi_processes)));
+ const auto proc_columns =
+ static_cast<unsigned int>(std::floor(n_mpi_processes / proc_rows));
// create 2d process grid
std::shared_ptr<Utilities::MPI::ProcessGrid> grid =
std::make_shared<Utilities::MPI::ProcessGrid>(mpi_communicator,
std::cout << std::setprecision(10);
ConditionalOStream pcout(std::cout, (this_mpi_process == 0));
- const unsigned int proc_rows = std::floor(std::sqrt(n_mpi_processes));
- const unsigned int proc_columns = std::floor(n_mpi_processes / proc_rows);
+ const auto proc_rows =
+ static_cast<unsigned int>(std::floor(std::sqrt(n_mpi_processes)));
+ const auto proc_columns =
+ static_cast<unsigned int>(std::floor(n_mpi_processes / proc_rows));
// create 2d process grid
const std::vector<unsigned int> sizes = {{400, 500}};
std::shared_ptr<Utilities::MPI::ProcessGrid> grid =
std::cout << std::setprecision(10);
ConditionalOStream pcout(std::cout, (this_mpi_process == 0));
- const unsigned int proc_rows = std::floor(std::sqrt(n_mpi_processes));
- const unsigned int proc_columns = std::floor(n_mpi_processes / proc_rows);
+ const auto proc_rows =
+ static_cast<unsigned int>(std::floor(std::sqrt(n_mpi_processes)));
+ const auto proc_columns =
+ static_cast<unsigned int>(std::floor(n_mpi_processes / proc_rows));
// create 2d process grid
const std::vector<unsigned int> sizes = {{400, 500}};
std::shared_ptr<Utilities::MPI::ProcessGrid> grid =
&liwork,
&info);
- lwork = work[0];
+ lwork = static_cast<int>(work[0]);
work.resize(lwork);
liwork = iwork[0];
iwork.resize(liwork);
&liwork,
&info);
- lwork = work[0];
+ lwork = static_cast<int>(work[0]);
work.resize(lwork);
liwork = iwork[0];
iwork.resize(liwork);