zoltan2: adding some global pamgen calls
Merge branch 'master' of software.sandia.gov:/git/Trilinos
Intrepid_MiniTensor: address floating point exception.

With exception tracking enabled, some Albany tests would fail
due to a floating point exception. The issue was the return of
std::sqrt(s) from norm(Tensor<T, N> const & A) in Intrepid_MiniTensor_LinearAlgebra.i.h;
when s is numerically zero the Sacado derivative of std::sqrt(s)
is not defined.  The code was modified to return 0.0 when
s is numerically zero or less.

Build/Test Cases Summary
Enabled Packages: Intrepid
Enabled all Forward Packages
0) MPI_DEBUG => passed: passed=141,notpassed=0 (10.24 min)
1) SERIAL_RELEASE => passed: passed=141,notpassed=0 (2.96 min)
2) MPI_RELEASE_SS => passed: passed=141,notpassed=0 (2.66 min)
Kokkos: Add 'KOKKOS_ACTIVE_EXECUTION_MEMORY_SPACE_HOST' macro which is defined when compiling non-Cuda-device code; e.g., is defined when __CUDA_ARCH__ is NOT defined.  Fix signed/unsigned compare warnings.
Kokkos: Add compatibility checks to Kokkos::deep_copy implementation to catch errors.

An outstanding problem to be addressed is a call to deep_copy with
fully compatible subviews of rank > 1 that have strided subranges
smaller than the dimensions will copy full range of contiguous
memory spanned by the subviews.  This copies too much.  Challenge
is to keep the high-performing deep_copy for all compatible views
that do not have this sub-strided characteristic.
Add two new methods to Selector, to access selected buckets, and number of selected entities.

Methods are:
BucketVector const& Selector::get_buckets(EntityRank entity_rank);
size_t Selector::size(EntityRank entity_rank);

Subject to review by stkt and app team developers.

One issue that definitely needs to be discussed:
Not all selectors have parts, thus no access to mesh and buckets.
Example:
  Selector select_nothing;
  Selector select_everything = select_nothing.complement();

(From Sierra)
Changes from code-review with Todd.

(From Sierra)
A little more unit-testing for Selector::empty(..)

(From Sierra)
Removed redundant parallel_reduce() function

The parallel_reduce() function was removed in favor of the
new-and-improved parallel_sum(), parallel_min(), and parallel_max(),
to aspire to the goal of only one way to do things.  The
parallel_reduce() function could only reduce a single field, and
used the strange idiom of passing in the reduction operator coupled
with the target field.  This previously used a very hairy recursive
templated reduction operator that was shown to be part of the
performance issues that lead to the rewrite of parallel_sum() and
friends some time ago.  So, there's not much motivation left to keep
this thing (and supporting functions) around.

This change gives a ~3% overall speedup in the nalu edgeKsgsjetXflowML
performance test (the "misc" timer category for each equation is roughly
cut in half).

(From Sierra)

Build/Test Cases Summary
Enabled Packages: STKMesh, STK, STKUnit_tests
Disabled Packages: PyTrilinos,SEACASExo2mat,SEACASMat2exo,Optika,STKClassic,Sundance
Enabled all Forward Packages
0) MPI_DEBUG => Skipped configure, build, test due to no enabled packages! => Does not affect push readiness! (-1.00 min)
1) SERIAL_RELEASE => Skipped configure, build, test due to no enabled packages! => Does not affect push readiness! (-1.00 min)
2) MPI_DEBUG_SS => passed: passed=11,notpassed=0 (9.43 min)
3) SERIAL_RELEASE_SS => passed: passed=9,notpassed=0 (12.02 min)
Other local commits for this build/test group: 478df2b, a2b43c8, 0535191
In Zoltan2_TestHelpers.hpp, global definitions of gno_t, lno_t, gid_t and
scalar_t can cause bugs in the code.  If a class fails to define these
types, but Zoltan2_TestHelpers is included before the class file, the types
from Zoltan2_TestHelpers.hpp will be used in the class.  Compilation in
user programs (without Zoltan2_TestHelpers.hpp) would then fail.  An
example of this bug was in the GeometricGenerator class, which used
scalar_t without defining it.

Even worse, we weren't defining gid_t; we were getting it from unistd.h;
OUCH!  We'll have to beward of gid_t in unistd.h as we program, or
change the name throughout Zoltan2.

In this "fix," I changed gno_t, lno_t, gid_t, scalar_t, and node_t to zgno_t,
zlno_t, zgid_t, zscalar_t and znode_t in Zoltan2_TestHelpers.hpp.  This
change is not the best fix; a better fix would remove the global
definitions, but that would require more work.  (An even better change
would use the Teuchos test framework to cycle through various options,
but that would require even more work and should be delayed until we
revamp the testing.)
Added TODO comment to Zoltan2_TestHelpers.
Merge branch 'master' of software.sandia.gov:/git/Trilinos
Switch default partitioning method to mj
Put guards around tests to avoid failures due to insufficient
configurations;  e.g., don't run a Scotch test if you haven't built with
Scotch.
Disable CUDA testing on zan

The CUDA testing on zan isn't useful anymore and has been causing issues so at
the request of the Kokkos team I am disabling those tests.
More fixes of type warnings when gno_t, gid_t are unsigned.
Does NOT address bug 6194.
One less pesky warning
Merge branch 'master' of software.sandia.gov:/git/Trilinos
Anasazi: Fixed some minor warnings and added Doxygen comments to TraceMin.

Build/Test Cases Summary
Enabled Packages: Anasazi
Enabled all Forward Packages
0) MPI_DEBUG => passed: passed=249,notpassed=0 (25.35 min)
1) SERIAL_RELEASE => passed: passed=250,notpassed=0 (16.36 min)
 Adding the missing header file in install directory ..