Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a few unused / uninitialized variable warnings #955

Merged
merged 1 commit into from
Jun 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Src/Base/AMReX_FabArrayBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1680,8 +1680,8 @@ FabArrayBase::CheckRcvStats(Vector<MPI_Status>& recv_stats,
{
for (int i = 0, n = recv_size.size(); i < n; ++i) {
if (recv_size[i] > 0) {
std::size_t count;
int tmp_count;
std::size_t count = 0;
int tmp_count = 0;

const int comm_data_type = ParallelDescriptor::select_comm_data_type(recv_size[i]);
if (comm_data_type == 1) {
Expand Down
2 changes: 1 addition & 1 deletion Src/F_Interfaces/Base/AMReX_multifab_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ end function amrex_mfiter_validbox
function amrex_mfiter_fabbox (this) result (bx)
class(amrex_mfiter), intent(in) :: this
type(amrex_box) :: bx
integer :: dir, inodal(3)
integer :: inodal(3)
inodal = 0
call amrex_fi_mfiter_fabbox(this%p, bx%lo, bx%hi, inodal)
where (inodal .ne. 0) bx%nodal = .true. ! note default is false
Expand Down
2 changes: 1 addition & 1 deletion Src/F_Interfaces/Octree/AMReX_octree_fi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extern "C" {
{
ParmParse pp("amr");
int cnt = pp.countval("max_grid_size");
int max_grid_size;
int max_grid_size = 0;
if (cnt == 0) {
max_grid_size = 8;
pp.add("max_grid_size", max_grid_size);
Expand Down