Skip to content

Commit

Permalink
Panzer: Remove Compiler Warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgate committed Aug 6, 2018
1 parent 0df591f commit ba72888
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/panzer/core/src/Panzer_UtilityAlgs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace panzer{
void reorder(std::vector<int> & order,std::function<void(int,int)> swapper)
{
// each entry has to be sorted
for(std::size_t i=0;i<order.size();i++) {
for(int i=0;i<static_cast<int>(order.size());i++) {

// a, b, c
// 2, 0, 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ void updateGhostedDataReducedVectorEpetra(const std::string & fieldName,const st
else if(rank==3) {
std::size_t entries = data.extent(2);

TEUCHOS_TEST_FOR_EXCEPTION(dataVector.NumVectors()!=entries,std::runtime_error,
TEUCHOS_TEST_FOR_EXCEPTION(dataVector.NumVectors()!=static_cast<int>(entries),std::runtime_error,
"panzer::updateGhostedDataReducedVector: number of columns in data vector inconsistent with data array");

// loop over elements distributing relevent data to vector
Expand Down
1 change: 0 additions & 1 deletion packages/panzer/mini-em/example/BlockPrec/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ int main_(Teuchos::CommandLineProcessor &clp, int argc,char * argv[])
int numReps = 0;
std::string linAlgebra = "Tpetra";
use_stacked_timer = true;
Teuchos::CommandLineProcessor clp;
clp.setOption("x-elements",&x_elements);
clp.setOption("y-elements",&y_elements);
clp.setOption("z-elements",&z_elements);
Expand Down

0 comments on commit ba72888

Please sign in to comment.