Commit d790322a authored by Dan Wu's avatar Dan Wu
Browse files

Fixed some cppcheck warnings on unread variables (variable is assigned a value that is never used).

parent 37def48e
......@@ -133,7 +133,7 @@ void test_coords_connect_iterate()
}
hit += count;
total += count;
//total += count;
}
// ok, done
......
......@@ -205,7 +205,7 @@ ErrorCode gentityset_test(FBEngine * pFacet)
int num_type = 4;
EntityHandle ges_array[4];
int number_array[4];
int num_all_gentities_super = 0;
//int num_all_gentities_super = 0;
int ent_type = 0; // iBase_VERTEX;
EntityHandle root_set;
......@@ -247,7 +247,7 @@ ErrorCode gentityset_test(FBEngine * pFacet)
}
// add to number of all entities in super set
num_all_gentities_super += num_type_gentity;
//num_all_gentities_super += num_type_gentity;
}
// make a super set having all entitysets
......
......@@ -216,7 +216,7 @@ void test_intx_in_parallel_elem_based()
//std::string opts_write("PARALLEL=WRITE_PART");
//rval = mb.write_file("manuf.h5m", 0, opts_write.c_str(), &outputSet, 1);
std::string opts_write("");
//std::string opts_write("");
std::stringstream outf;
outf<<"intersect" << rank<<".h5m";
rval = mb.write_file(outf.str().c_str(), 0, 0, &outputSet, 1);
......@@ -292,7 +292,7 @@ void test_intx_mpas()
//std::string opts_write("PARALLEL=WRITE_PART");
//rval = mb.write_file("manuf.h5m", 0, opts_write.c_str(), &outputSet, 1);
std::string opts_write("");
//std::string opts_write("");
std::stringstream outf;
outf<<"intersect" << rank<<".h5m";
rval = mb.write_file(outf.str().c_str(), 0, 0, &outputSet, 1);
......
......@@ -183,7 +183,7 @@ void build_coords(const int nelem, double *&coords)
for (int i=1; i < nelem; i++) {
for (int j=1; j < nelem; j++) {
for (int k=1; k < nelem; k++) {
idx = VINDEX(i,j,k);
//idx = VINDEX(i,j,k);
double tse = i*scale1;
double ada = j*scale2;
double gamma = k*scale3;
......
......@@ -254,6 +254,7 @@ ErrorCode time_integrate(Interface *mbi, int method, Tag tag, Range &elems, doub
}
}
inttime = mytime() - inttime;
std::cout << "integral = " << integral << std::endl;
return MB_SUCCESS;
}
......
......@@ -233,7 +233,7 @@ void testC(TSTTM::Mesh &mesh,
// array to hold vertices created individually
sidl::array<Entity_Handle> sidl_vertices;
int sidl_vertices_size = num_verts;
//int sidl_vertices_size = num_verts;
CHECK_SIZE(sidl_vertices, num_verts);
// temporary array to hold vertex positions for single vertex
......@@ -576,7 +576,7 @@ void build_coords(const int nelem, sidl::array<double> &coords)
for (int i=1; i < nelem; i++) {
for (int j=1; j < nelem; j++) {
for (int k=1; k < nelem; k++) {
idx = VINDEX(i,j,k);
//idx = VINDEX(i,j,k);
double tse = i*scale1;
double ada = j*scale2;
double gamma = k*scale3;
......
......@@ -548,7 +548,7 @@ void build_coords(const int nelem, double *&coords)
for (int i=1; i < nelem; i++) {
for (int j=1; j < nelem; j++) {
for (int k=1; k < nelem; k++) {
idx = VINDEX(i,j,k);
//idx = VINDEX(i,j,k);
double tse = i*scale1;
double ada = j*scale2;
double gamma = k*scale3;
......
......@@ -213,6 +213,7 @@ int main(int argc, char **argv)
delete mbImpl;
ierr = MPI_Finalize();
assert(MPI_SUCCESS == ierr);
return 0;
}
......
......@@ -191,7 +191,7 @@ int main(int argc, char **argv)
if (MB_SUCCESS != rval)
return 1;
std::string opts_write("");
//std::string opts_write("");
std::stringstream outf;
outf << "intersect1" << ".h5m";
rval = mb.write_file(outf.str().c_str(), 0, 0, &outputSet, 1);
......
......@@ -169,7 +169,7 @@ ErrorCode add_field_value(Interface & mb)
// we should have used some
// total mass:
local_mass += *ptrArea * average;
//local_mass += *ptrArea * average;
}
}
......
......@@ -214,7 +214,7 @@ void test_intx_in_parallel_elem_based()
//std::string opts_write("PARALLEL=WRITE_PART");
//rval = mb.write_file("manuf.h5m", 0, opts_write.c_str(), &outputSet, 1);
std::string opts_write("");
//std::string opts_write("");
std::stringstream outf;
outf<<"intersect" << rank<<".h5m";
rval = mb.write_file(outf.str().c_str(), 0, 0, &outputSet, 1);
......
......@@ -1957,7 +1957,7 @@ ErrorCode DrawDual::label_other_sheets(EntityHandle dual_surf,
continue;
}
int edge_vtk_vs[2];
//int edge_vtk_vs[2];
GVEntity *gv_verts[2];
const EntityHandle *edge_vs;
int num_edge_vs;
......@@ -1978,7 +1978,7 @@ ErrorCode DrawDual::label_other_sheets(EntityHandle dual_surf,
for (int i = 0; i < 2; i++) {
index = gv_verts[i]->get_index(dual_surf);
assert(index >= 0 && NULL != gv_verts[i]->gvizPoints[index]);
edge_vtk_vs[i] = gv_verts[i]->vtkEntityIds[index];
//edge_vtk_vs[i] = gv_verts[i]->vtkEntityIds[index];
// look for loop points, and add label if there are any
if (dverts_loop.find(edge_vs[i]) != dverts_loop.end()) {
......
......@@ -31,15 +31,15 @@ int VTKTCL_EXPORT vtkMOABReaderCommand(ClientData cd, Tcl_Interp *interp,
int VTKTCL_EXPORT vtkMOABReaderCppCommand(vtkMOABReader *op, Tcl_Interp *interp,
int argc, char *argv[])
{
int tempi;
double tempd;
static char temps[80];
//int tempi;
//double tempd;
//static char temps[80];
int error;
error = 0;
tempi = 0;
tempd = 0;
temps[0] = 0;
//tempi = 0;
//tempd = 0;
//temps[0] = 0;
if (argc < 2)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment