diff --git a/src/ArrayDataLayer.h b/src/ArrayDataLayer.h index 84bcc5b1..b69696fc 100644 --- a/src/ArrayDataLayer.h +++ b/src/ArrayDataLayer.h @@ -112,7 +112,7 @@ template class Array3DdataLayer : public DataLayer { /*! \brief directly stores the desired values in a given array */ size_t getValuesAt(FFPoint, const double&, FluxModel*, size_t); - void setValueAt(FFPoint loc, double tval, T value){}; + void setValueAt(FFPoint /*loc*/, double /*tval*/, T /*value*/){}; /*! \brief getter to the pointer on the FFArray */ void getMatrix(FFArray**, const double&); /*! \brief stores data from a fortran array into the FFArray */ @@ -146,7 +146,7 @@ T Array3DdataLayer::getValueAt(FireNode* fn){ } template -T Array3DdataLayer::getValueAt(FFPoint loc, const double& time){ +T Array3DdataLayer::getValueAt(FFPoint loc, const double& /*time*/){ if ( interp == nearestData ) return getNearestData(loc); if ( interp == bilinear ) return bilinearInterp(loc); cout<<"WARNING: unknown interpolation method in " @@ -161,14 +161,14 @@ FFPoint& getOriginPoint(); FFPoint& getSpan(); template -size_t Array3DdataLayer::getValuesAt(FireNode* fn - , PropagationModel* model, size_t curItem){ +size_t Array3DdataLayer::getValuesAt(FireNode* /*fn*/ + , PropagationModel* /*model*/, size_t /*curItem*/){ return 0; } template -size_t Array3DdataLayer::getValuesAt(FFPoint loc, const double& - , FluxModel* model, size_t curItem){ +size_t Array3DdataLayer::getValuesAt(FFPoint /*loc*/, const double& + , FluxModel* /*model*/, size_t /*curItem*/){ return 0; } @@ -244,13 +244,13 @@ T Array3DdataLayer::bilinearInterp(FFPoint loc){ template void Array3DdataLayer::getMatrix( - FFArray** matrix, const double& time){ + FFArray** matrix, const double& /*time*/){ *matrix = array; } template -void Array3DdataLayer::setMatrix(string& mname, double* inMatrix - , const size_t& sizein, size_t& sizeout, const double& time){ +void Array3DdataLayer::setMatrix(string& /*mname*/, double* inMatrix + , const size_t& sizein, size_t& /*sizeout*/, const double& /*time*/){ if ( array->getSize() == sizein ){ // copying data from atmospheric matrix array->copyDataFromFortran(inMatrix); @@ -376,7 +376,7 @@ template class Array2DdataLayer : public DataLayer { size_t getValuesAt(FireNode*, PropagationModel*, size_t); /*! \brief directly stores the desired values in a given array */ size_t getValuesAt(FFPoint, const double&, FluxModel*, size_t); - void setValueAt(FFPoint loc, double tval, T value){}; + void setValueAt(FFPoint /*loc*/, double /*tval*/, T /*value*/){}; /*! \brief getter to the pointer on the FFArray */ void getMatrix(FFArray**, const double&); /*! \brief stores data from a fortran array into the FFArray */ @@ -417,7 +417,7 @@ T Array2DdataLayer::getValueAt(FireNode* fn){ } template -T Array2DdataLayer::getValueAt(FFPoint loc, const double& time){ +T Array2DdataLayer::getValueAt(FFPoint loc, const double& /*time*/){ if ( interp == nearestData ) return getNearestData(loc); if ( interp == bilinear ) return bilinearInterp(loc); cout<<"WARNING: unknown interpolation method in " @@ -426,14 +426,14 @@ T Array2DdataLayer::getValueAt(FFPoint loc, const double& time){ } template -size_t Array2DdataLayer::getValuesAt(FireNode* fn - , PropagationModel* model, size_t curItem){ +size_t Array2DdataLayer::getValuesAt(FireNode* /*fn*/ + , PropagationModel* /*model*/, size_t /*curItem*/){ return 0; } template -size_t Array2DdataLayer::getValuesAt(FFPoint loc, const double& - , FluxModel* model, size_t curItem){ +size_t Array2DdataLayer::getValuesAt(FFPoint /*loc*/, const double& + , FluxModel* /*model*/, size_t /*curItem*/){ return 0; } @@ -506,13 +506,13 @@ T Array2DdataLayer::bilinearInterp(FFPoint loc){ template void Array2DdataLayer::getMatrix( - FFArray** matrix, const double& time){ + FFArray** matrix, const double& /*time*/){ *matrix = array; } template -void Array2DdataLayer::setMatrix(string& mname, double* inMatrix - , const size_t& sizein, size_t& sizeout, const double& time){ +void Array2DdataLayer::setMatrix(string& /*mname*/, double* inMatrix + , const size_t& sizein, size_t& /*sizeout*/, const double& /*time*/){ if ( array->getSize() == sizein ){ // copying data from atmospheric matrix array->copyDataFromFortran(inMatrix); diff --git a/src/BurningMapLayer.h b/src/BurningMapLayer.h index 52f14d56..76fd6714 100644 --- a/src/BurningMapLayer.h +++ b/src/BurningMapLayer.h @@ -65,7 +65,7 @@ template class BurningMapLayer : public DataLayer { size_t getValuesAt(FireNode*, PropagationModel*, size_t); /*! \brief directly stores the desired values in a given array */ size_t getValuesAt(FFPoint, const double&, FluxModel*, size_t); - void setValueAt(FFPoint loc, double tval, T value){}; + void setValueAt(FFPoint /*loc*/, double /*tval*/, T /*value*/){}; /*! \brief getter to the pointer on the FFArray */ void getMatrix(FFArray**, const double&); /*! \brief stores data from a fortran array into the FFArray */ @@ -101,19 +101,19 @@ T BurningMapLayer::getValueAt(FireNode* fn){ } template -T BurningMapLayer::getValueAt(FFPoint loc, const double& time){ +T BurningMapLayer::getValueAt(FFPoint loc, const double& /*time*/){ return getNearestData(loc); } template -size_t BurningMapLayer::getValuesAt(FireNode* fn - , PropagationModel* model, size_t curItem){ +size_t BurningMapLayer::getValuesAt(FireNode* /*fn*/ + , PropagationModel* /*model*/, size_t /*curItem*/){ return 0; } template -size_t BurningMapLayer::getValuesAt(FFPoint loc, const double& t - , FluxModel* model, size_t curItem){ +size_t BurningMapLayer::getValuesAt(FFPoint /*loc*/, const double& /*t*/ + , FluxModel* /*model*/, size_t /*curItem*/){ return 0; } @@ -143,8 +143,8 @@ void BurningMapLayer::getMatrix( } template -void BurningMapLayer::setMatrix(string& mname, double* inMatrix - , const size_t& sizein, size_t& sizeout, const double& time){ +void BurningMapLayer::setMatrix(string& /*mname*/, double* inMatrix + , const size_t& sizein, size_t& /*sizeout*/, const double& /*time*/){ if ( arrivalTimes->getSize() == sizein ){ arrivalTimes->copyDataFromFortran(inMatrix); } else { @@ -164,8 +164,8 @@ string BurningMapLayer::print2D(size_t i, size_t j){ } template -void BurningMapLayer::dumpAsBinary(string filename, const double& time - , FFPoint& SWC, FFPoint& NEC, size_t& nnx, size_t& nny){ +void BurningMapLayer::dumpAsBinary(string filename, const double& /*time*/ + , FFPoint& /*SWC*/, FFPoint& /*NEC*/, size_t& /*nnx*/, size_t& /*nny*/){ /* writing the matrix in a binary file */ ostringstream outputfile; outputfile<getKey(); diff --git a/src/BurningRatioLayer.h b/src/BurningRatioLayer.h index 9e2807eb..dba0ca13 100644 --- a/src/BurningRatioLayer.h +++ b/src/BurningRatioLayer.h @@ -69,7 +69,7 @@ template class BurningRatioLayer : public DataLayer { size_t getValuesAt(FireNode*, PropagationModel*, size_t); /*! \brief directly stores the desired values in a given array */ size_t getValuesAt(FFPoint, const double&, FluxModel*, size_t); - void setValueAt(FFPoint loc, double tval, T value){}; + void setValueAt(FFPoint /*loc*/, double /*tval*/, T /*value*/){}; /*! \brief getter to the pointer on the FFArray */ void getMatrix(FFArray**, const double&); /*! \brief stores data from a fortran array into the FFArray */ @@ -104,24 +104,24 @@ T BurningRatioLayer::getValueAt(FireNode* fn){ } template -T BurningRatioLayer::getValueAt(FFPoint loc, const double& time){ +T BurningRatioLayer::getValueAt(FFPoint loc, const double& /*time*/){ return getNearestData(loc); } template -size_t BurningRatioLayer::getValuesAt(FireNode* fn - , PropagationModel* model, size_t curItem){ +size_t BurningRatioLayer::getValuesAt(FireNode* /*fn*/ + , PropagationModel* /*model*/, size_t /*curItem*/){ return 0; } template -size_t BurningRatioLayer::getValuesAt(FFPoint loc, const double& t - , FluxModel* model, size_t curItem){ +size_t BurningRatioLayer::getValuesAt(FFPoint /*loc*/, const double& /*t*/ + , FluxModel* /*model*/, size_t /*curItem*/){ return 0; } template -T BurningRatioLayer::getNearestData(FFPoint loc){ +T BurningRatioLayer::getNearestData(FFPoint /*loc*/){ cout<<"BurningRatioLayer::getNearestData() " <<"shouldn't have been called"<::getMatrix( } template -void BurningRatioLayer::setMatrix(string& mname, double* inMatrix - , const size_t& sizein, size_t& sizeout, const double& time){ +void BurningRatioLayer::setMatrix(string& /*mname*/, double* inMatrix + , const size_t& sizein, size_t& /*sizeout*/, const double& /*time*/){ if ( ratioMap->getSize() == sizein ){ ratioMap->copyDataFromFortran(inMatrix); } else { @@ -177,8 +177,8 @@ string BurningRatioLayer::print2D(size_t i, size_t j){ } template -void BurningRatioLayer::dumpAsBinary(string filename, const double& time - , FFPoint& SWC, FFPoint& NEC, size_t& nnx, size_t& nny){ +void BurningRatioLayer::dumpAsBinary(string filename, const double& /*time*/ + , FFPoint& /*SWC*/, FFPoint& /*NEC*/, size_t& /*nnx*/, size_t& /*nny*/){ /* writing the matrix in a binary file */ ostringstream outputfile; outputfile<getKey(); diff --git a/src/CLibForeFire.cpp b/src/CLibForeFire.cpp index da21e97b..7af75189 100644 --- a/src/CLibForeFire.cpp +++ b/src/CLibForeFire.cpp @@ -81,7 +81,7 @@ void MNHCreateDomain(const int id , const double lat, const double lon , const int mdimx, const double* meshx , const int mdimy, const double* meshy - , const int mdimz, const double* zgrid + , const int mdimz, const double* /*zgrid*/ , const double dt){ /* Defining the Fire Domain */ @@ -623,7 +623,7 @@ void executeMNHCommand(const char* cmd){ executor.ExecuteCommand(scmd); } -void FFPutString(const char* mname, char* str){ +void FFPutString(const char* /*mname*/, char* /*str*/){ // NOT TO BE CALLED } @@ -643,13 +643,13 @@ void FFGetInt(const char* mname, int* n){ SimulationParameters::GetInstance()->setInt(name, *n); } -void FFPutIntArray(const char* mname, int* x, - size_t sizein, size_t sizeout){ +void FFPutIntArray(const char* /*mname*/, int* /*x*/, + size_t /*sizein*/, size_t /*sizeout*/){ // TODO } -void FFGetIntArray(const char* mname, double time - , int* x, int sizein, int sizeout){ +void FFGetIntArray(const char* /*mname*/, double /*time*/ + , int* /*x*/, int /*sizein*/, int /*sizeout*/){ // TODO } @@ -664,7 +664,7 @@ void FFGetDouble(const char* mname, double* x){ } void FFPutDoubleArray(const char* mname, double* x, - size_t sizein, size_t sizeout){ + size_t /*sizein*/, size_t /*sizeout*/){ string tmpname(mname); // searching for concerned layer @@ -698,7 +698,7 @@ void FFPutDoubleArray(const char* mname, double* x, void FFDumpDoubleArray(size_t nmodel, size_t nip, const char* mname, double t - , double* x, size_t sizein, size_t ni, size_t nj, size_t nk, size_t sizeout){ + , double* x, size_t sizein, size_t ni, size_t nj, size_t nk, size_t /*sizeout*/){ string tmpname(mname); ostringstream outputfile; diff --git a/src/Command.cpp b/src/Command.cpp index bf090337..858e1227 100644 --- a/src/Command.cpp +++ b/src/Command.cpp @@ -86,7 +86,7 @@ namespace libforefire currentLevel--; } - int Command::createDomain(const string &arg, size_t &numTabs) + int Command::createDomain(const string &arg, size_t &/*numTabs*/) { size_t n = argCount(arg); @@ -253,7 +253,7 @@ namespace libforefire } } - int Command::startFire(const string &arg, size_t &numTabs) + int Command::startFire(const string &arg, size_t &/*numTabs*/) { if (!domainExists("startFire")) return error; @@ -1148,7 +1148,7 @@ namespace libforefire return normal; } - int Command::printSimulation(const string &arg, size_t &numTabs) + int Command::printSimulation(const string &arg, size_t &/*numTabs*/) { if (getDomain() == 0) return normal; @@ -1198,7 +1198,7 @@ namespace libforefire } return normal; } - int Command::systemExec(const string &arg, size_t &numTabs) + int Command::systemExec(const string &arg, size_t &/*numTabs*/) { // No shell commands from the network, even through include[] or @t=. if (remoteCommand) @@ -1312,7 +1312,7 @@ namespace libforefire return std::vector{minVal, maxVal}; } - int Command::plotSimulation(const std::string &arg, size_t &numTabs) + int Command::plotSimulation(const std::string &arg, size_t &/*numTabs*/) { if (getDomain() == nullptr) return normal; @@ -1830,7 +1830,7 @@ namespace libforefire return normal; } - int Command::addLayer(const std::string &arg, size_t &numTabs) + int Command::addLayer(const std::string &arg, size_t &/*numTabs*/) { if (getDomain() == nullptr) return normal; @@ -1961,7 +1961,7 @@ namespace libforefire return normal; } - int Command::computeModelSpeed(const std::string &cmd, size_t &numTabs) + int Command::computeModelSpeed(const std::string &cmd, size_t &/*numTabs*/) { // Expected cmd format: "ModelKey;value1;value2;value3;..." @@ -2032,7 +2032,7 @@ namespace libforefire return normal; } - int Command::setParameter(const string &arg, size_t &numTabs) + int Command::setParameter(const string &arg, size_t &/*numTabs*/) { // Getting all the arguments, using the 'tokenize' function // Returns strings of the form 'arg=...' @@ -2136,7 +2136,7 @@ namespace libforefire } } - int Command::triggerValue(const string &arg, size_t &numTabs) + int Command::triggerValue(const string &arg, size_t &/*numTabs*/) { vector tmpArgs; @@ -2241,7 +2241,7 @@ namespace libforefire return error; } - int Command::emit(const string &arg, size_t &numTabs) + int Command::emit(const string &arg, size_t &/*numTabs*/) { FireDomain *domain = currentSession.fd;//getDomain(); if (domain == 0) @@ -2486,7 +2486,7 @@ namespace libforefire } } - int Command::include(const string &arg, size_t &numTabs) + int Command::include(const string &arg, size_t &/*numTabs*/) { /* the commands are read from a defined file * testing for the presence of the file */ @@ -2508,7 +2508,7 @@ namespace libforefire // saveData writes a landscape file, which is NetCDF end to end; there is no // partial behaviour to keep when NetCDF is compiled out. - int Command::saveData(const std::string &arg, size_t &numTabs) + int Command::saveData(const std::string &/*arg*/, size_t &/*numTabs*/) { std::cout << "saveData: this build has no NetCDF support" << std::endl; return error; @@ -2516,7 +2516,7 @@ namespace libforefire #else - int Command::saveData(const std::string &arg, size_t &numTabs) + int Command::saveData(const std::string &arg, size_t &/*numTabs*/) { // Check for an argument if (arg.empty()) @@ -2852,7 +2852,7 @@ namespace libforefire #endif /* FF_NO_NETCDF */ - int Command::loadData(const string &arg, size_t &numTabs) + int Command::loadData(const string &arg, size_t &/*numTabs*/) { if (arg.size() == 0) @@ -2984,7 +2984,7 @@ namespace libforefire return normal; } - int Command::clear(const string &arg, size_t &numTabs) + int Command::clear(const string &/*arg*/, size_t &/*numTabs*/) { delete currentSession.fd; currentSession.fd =nullptr; @@ -2995,7 +2995,7 @@ namespace libforefire return normal; } - int Command::quit(const string &arg, size_t &numTabs) + int Command::quit(const string &/*arg*/, size_t &/*numTabs*/) { // No exit() here. `quit` is in the command table, so it is reachable // from the Python binding and from the HTTP server, and a library @@ -3454,7 +3454,7 @@ namespace libforefire } - int Command::listenHTTP(const std::string &arg, size_t &numTabs) + int Command::listenHTTP(const std::string &arg, size_t &/*numTabs*/) { // ID 1 is for the Fortran MPI rank 1 @@ -3749,7 +3749,7 @@ namespace libforefire stbi_write_png(hist_filename.c_str(), width, height, 4, histogram.data(), width * 4); } - void Command::writeNetCDF(const char *filename, const string &varName, const std::vector> &matrix, const vector &latitudes, const vector &longitudes) + void Command::writeNetCDF(const char *filename, [[maybe_unused]] const string &varName, [[maybe_unused]] const std::vector> &matrix, [[maybe_unused]] const vector &latitudes, [[maybe_unused]] const vector &longitudes) { #ifdef FF_NO_NETCDF std::cerr << "writeNetCDF: this build has no NetCDF support, " @@ -3800,7 +3800,7 @@ namespace libforefire } #endif /* FF_NO_NETCDF */ } - void Command::writeASCII(const char *filename, const std::vector> &matrix, double SWX, double SWY, double NEX, double NEY) + void Command::writeASCII(const char *filename, const std::vector> &matrix, double SWX, double SWY, double NEX, double /*NEY*/) { std::ofstream out(filename); if (!out) diff --git a/src/DataBroker.cpp b/src/DataBroker.cpp index e4e930ed..ced9227b 100644 --- a/src/DataBroker.cpp +++ b/src/DataBroker.cpp @@ -830,7 +830,7 @@ namespace libforefire return numberOfValuesFilled; } - int DataBroker::getMoisturesProperties(FireNode *fn, PropagationModel *model, int keynum) + int DataBroker::getMoisturesProperties(FireNode */*fn*/, PropagationModel *model, int keynum) { // double m_ones = 0.032; double m_liveh = 0.7; @@ -1026,8 +1026,8 @@ namespace libforefire return 1; } - void DataBroker::getMatrix(string matrixName, const FFPoint &SWCorner, - const FFPoint &NECorner, const double &t, FFArray **matrix) + void DataBroker::getMatrix(string matrixName, const FFPoint &/*SWCorner*/, + const FFPoint &/*NECorner*/, const double &t, FFArray **matrix) { ilayer = layersMap.find(matrixName); if (ilayer != layersMap.end()) @@ -1495,15 +1495,15 @@ namespace libforefire } } - PropagativeLayer *DataBroker::constructPropagativeLayer(NcVar &values, FFPoint &SWCorner, FFPoint &spatialExtent, - double timeOrigin, double Lt, int dimTSelected /* = -1 */) + PropagativeLayer *DataBroker::constructPropagativeLayer(NcVar &/*values*/, FFPoint &/*SWCorner*/, FFPoint &/*spatialExtent*/, + double /*timeOrigin*/, double /*Lt*/, int /*dimTSelected*/ /* = -1 */) { cout << "DataBroker::constructPropagativeLayerFromFile " << " from netCDF Not Implemented" << endl; return NULL; } FuelDataLayer *DataBroker::constructFuelLayer(NcVar &values, FFPoint &SWCorner, FFPoint &spatialExtent, - double timeOrigin, double Lt, int dimTSelected) + double timeOrigin, double Lt, int /*dimTSelected*/) { size_t nx = 0, ny = 0, nz = 0, nt = 0; @@ -1544,7 +1544,7 @@ namespace libforefire } FluxLayer *DataBroker::constructFluxLayer(NcVar &values, FFPoint &SWCorner, FFPoint &spatialExtent, - double timeOrigin, double Lt, int dimTSelected /* = -1 */) + double timeOrigin, double Lt, int /*dimTSelected*/ /* = -1 */) { /* Sending the information on the models to the domain */ diff --git a/src/FDCell.cpp b/src/FDCell.cpp index b36a0041..5a4e46e9 100644 --- a/src/FDCell.cpp +++ b/src/FDCell.cpp @@ -201,7 +201,7 @@ double FDCell::getBurningRatio(const double& t){ return numBurningCells/mapSize; } -double FDCell::getMaxSpeed(const double& t){ +double FDCell::getMaxSpeed(const double& /*t*/){ FFPoint center; center.setX(SWCorner.getX()+0.5*dx); @@ -300,7 +300,7 @@ double FDCell::applyModelsOnBmap(string layername, const double& bt, const doubl } void FDCell::interpolateArrivalTimes(Array2DdataLayer* bmap - , const int& year, const int& day, const int& time){ + , const int& /*year*/, const int& /*day*/, const int& /*time*/){ if ( arrivalTimes != 0 ) delete arrivalTimes; arrivalTimes = new BurningMap(SWCorner, NECorner, mapSizeX, mapSizeY); bool relevant = false; diff --git a/src/FFArrays.h b/src/FFArrays.h index 53f41a67..785cd9bd 100644 --- a/src/FFArrays.h +++ b/src/FFArrays.h @@ -267,7 +267,7 @@ void FFArray::loadBinAtLoc(std::ifstream& FileIn, size_t startI, size_t star template -void FFArray::setDataAtLoc(T* matrix, size_t nnx, size_t nny,size_t startI, size_t startJ,size_t domFsize){ +void FFArray::setDataAtLoc(T* matrix, size_t nnx, size_t nny,size_t startI, size_t startJ,size_t /*domFsize*/){ size_t mi =(nny+2); //cout <<"UUUUat "<setPrev(this); } -void FFEvent::makeInput(FFEvent* ev){ +void FFEvent::makeInput(FFEvent* /*ev*/){ input = true; output = false; } -void FFEvent::makeOutput(FFEvent* ev){ +void FFEvent::makeOutput(FFEvent* /*ev*/){ input = false; output = true; } diff --git a/src/FireDomain.cpp b/src/FireDomain.cpp index cec7e974..1f068e6c 100644 --- a/src/FireDomain.cpp +++ b/src/FireDomain.cpp @@ -2208,7 +2208,7 @@ fn->makeTrash(); } - void FireDomain::stopOutgoingNode(FireNode* fn, FFPoint& loc, double& t){ + void FireDomain::stopOutgoingNode(FireNode* fn, FFPoint& loc, double& /*t*/){ if ( fn->getDomainID() == getDomainID() ){ debugOutput<toShort()<setNextLoc(loc); diff --git a/src/FluxLayer.h b/src/FluxLayer.h index 166e0133..0a297563 100644 --- a/src/FluxLayer.h +++ b/src/FluxLayer.h @@ -172,7 +172,7 @@ template class FluxLayer : public DataLayer { size_t getValuesAt(FireNode*, PropagationModel*, size_t); /*! \brief directly stores the desired values in a given array */ size_t getValuesAt(FFPoint, const double&, FluxModel*, size_t); - void setValueAt(FFPoint loc, double tval, T value){}; + void setValueAt(FFPoint /*loc*/, double /*tval*/, T /*value*/){}; /*! \brief initialize latestCallGetMatrix for the beginning of the simulation */ void setFirstCall(const double&); /*! \brief getter to the pointer on the FFArray */ @@ -313,16 +313,16 @@ T FluxLayer::getNearestData(FFPoint loc, double t){ } template -size_t FluxLayer::getValuesAt(FireNode* fn - , PropagationModel* model, size_t curItem){ +size_t FluxLayer::getValuesAt(FireNode* /*fn*/ + , PropagationModel* /*model*/, size_t /*curItem*/){ cout<<"WARNING: FluxLayer::getValuesAt() " <<"shouldn't have been called"< -size_t FluxLayer::getValuesAt(FFPoint loc, const double& t - , FluxModel* model, size_t curItem){ +size_t FluxLayer::getValuesAt(FFPoint /*loc*/, const double& /*t*/ + , FluxModel* /*model*/, size_t /*curItem*/){ cout<<"WARNING: FluxLayer::getValuesAt() " <<"shouldn't have been called"<::getPos(FFPoint& loc, double& t){ template void FuelDataLayer::getMatrix( - FFArray** lmatrix, const double& time){ + FFArray** lmatrix, const double& /*time*/){ double res = 10; double ddx = res; int nnx = (NECornerX - SWCornerX) / res; @@ -274,8 +274,8 @@ void FuelDataLayer::getMatrix( } template -void FuelDataLayer::setMatrix(string& mname, double* inMatrix - , const size_t& sizein, size_t& sizeout, const double& time){ +void FuelDataLayer::setMatrix(string& /*mname*/, double* /*inMatrix*/ + , const size_t& /*sizein*/, size_t& /*sizeout*/, const double& /*time*/){ // writing the incoming data in matrix // should not be done with this type of layer } diff --git a/src/GradientDataLayer.h b/src/GradientDataLayer.h index 48451741..cbd0e802 100644 --- a/src/GradientDataLayer.h +++ b/src/GradientDataLayer.h @@ -47,7 +47,7 @@ template class GradientDataLayer: public DataLayer { /*! \brief directly stores the desired values in a given array */ size_t getValuesAt(FireNode*, PropagationModel*, size_t); - void setValueAt(FFPoint p , double vt, T value){}; + void setValueAt(FFPoint /*p*/ , double /*vt*/, T /*value*/){}; /*! \brief directly stores the desired values in a given array */ size_t getValuesAt(FFPoint, const double&, FluxModel*, size_t); @@ -116,25 +116,25 @@ T GradientDataLayer::getValueAt(FFPoint loc, const double& time) { return maxGradient; } template -size_t GradientDataLayer::getValuesAt(FireNode* fn - , PropagationModel* model, size_t curItem){ +size_t GradientDataLayer::getValuesAt(FireNode* /*fn*/ + , PropagationModel* /*model*/, size_t /*curItem*/){ return 0; } template -size_t GradientDataLayer::getValuesAt(FFPoint loc, const double& t - , FluxModel* model, size_t curItem){ +size_t GradientDataLayer::getValuesAt(FFPoint /*loc*/, const double& /*t*/ + , FluxModel* /*model*/, size_t /*curItem*/){ return 0; } template void GradientDataLayer::getMatrix( - FFArray** matrix, const double& time){ + FFArray** /*matrix*/, const double& /*time*/){ } template -void GradientDataLayer::setMatrix(string& mname, double* inMatrix - , const size_t& sizein, size_t& sizeout, const double& time){ +void GradientDataLayer::setMatrix(string& /*mname*/, double* /*inMatrix*/ + , const size_t& /*sizein*/, size_t& /*sizeout*/, const double& /*time*/){ // writing the incoming data in matrix // should not be done with this type of layer } @@ -145,8 +145,8 @@ string GradientDataLayer::print(){ } template -void GradientDataLayer::dumpAsBinary(string filename, const double& time - , FFPoint& SWC, FFPoint& NEC, size_t& nnx, size_t& nny){ +void GradientDataLayer::dumpAsBinary(string /*filename*/, const double& /*time*/ + , FFPoint& /*SWC*/, FFPoint& /*NEC*/, size_t& /*nnx*/, size_t& /*nny*/){ } diff --git a/src/MultiplicativeLayer.h b/src/MultiplicativeLayer.h index 35b27a62..e43a4e07 100644 --- a/src/MultiplicativeLayer.h +++ b/src/MultiplicativeLayer.h @@ -75,7 +75,7 @@ template class MultiplicativeLayer : public DataLayer { size_t getValuesAt(FireNode*, PropagationModel*, size_t); /*! \brief directly stores the desired values in a given array */ size_t getValuesAt(FFPoint, const double&, FluxModel*, size_t); - void setValueAt(FFPoint loc, double tval, T value){}; + void setValueAt(FFPoint /*loc*/, double /*tval*/, T /*value*/){}; /*! \brief getter to the pointer on the FFArray */ void getMatrix(FFArray**, const double&); /*! \brief stores data from a fortran array into the FFArray */ @@ -115,19 +115,19 @@ T MultiplicativeLayer::getValueAt(FFPoint loc, const double& time){ } template -size_t MultiplicativeLayer::getValuesAt(FireNode* fn - , PropagationModel* model, size_t curItem){ +size_t MultiplicativeLayer::getValuesAt(FireNode* /*fn*/ + , PropagationModel* /*model*/, size_t /*curItem*/){ return 0; } template -size_t MultiplicativeLayer::getValuesAt(FFPoint loc, const double& t - , FluxModel* props, size_t curItem){ +size_t MultiplicativeLayer::getValuesAt(FFPoint /*loc*/, const double& /*t*/ + , FluxModel* /*props*/, size_t /*curItem*/){ return 0; } template -T MultiplicativeLayer::getNearestData(FFPoint loc){ +T MultiplicativeLayer::getNearestData(FFPoint /*loc*/){ cout<<"MultiplicativeLayer::getNearestData() " <<"shouldn't have been called"<::getMatrix( } template -void MultiplicativeLayer::setMatrix(string& mname, double* inMatrix - , const size_t& sizein, size_t& sizeout, const double& time){ +void MultiplicativeLayer::setMatrix(string& /*mname*/, double* inMatrix + , const size_t& sizein, size_t& /*sizeout*/, const double& /*time*/){ if ( matrix->getSize() == sizein ){ matrix->copyDataFromFortran(inMatrix); } else { @@ -173,8 +173,8 @@ string MultiplicativeLayer::print2D(size_t i, size_t j){ } template -void MultiplicativeLayer::dumpAsBinary(string filename, const double& time - , FFPoint& SWC, FFPoint& NEC, size_t& nnx, size_t& nny){ +void MultiplicativeLayer::dumpAsBinary(string filename, const double& /*time*/ + , FFPoint& /*SWC*/, FFPoint& /*NEC*/, size_t& /*nnx*/, size_t& /*nny*/){ /* writing the matrix in a binary file */ ostringstream outputfile; outputfile<getKey(); diff --git a/src/NCXYZTDataLayer.h b/src/NCXYZTDataLayer.h index f8f71987..15d3c509 100644 --- a/src/NCXYZTDataLayer.h +++ b/src/NCXYZTDataLayer.h @@ -422,7 +422,7 @@ T XYZTDataLayer::getValueAt(FFPoint loc, const double& t){ } template -void XYZTDataLayer::setValueAt(FFPoint loc, double t, T value){ +void XYZTDataLayer::setValueAt(FFPoint /*loc*/, double /*t*/, T /*value*/){ cout<<"WARNING: setting value not implemented"<::setValueAt(FFPoint loc, double t, T value){ template size_t XYZTDataLayer::getValuesAt( - FireNode* fn, PropagationModel* model, size_t curItem){ + FireNode* /*fn*/, PropagationModel* /*model*/, size_t /*curItem*/){ return 0; } @@ -462,13 +462,13 @@ FFPoint XYZTDataLayer::posToIndices(FFPoint& loc){ template void XYZTDataLayer::getMatrix( - FFArray** matrix, const double& time){ + FFArray** matrix, const double& /*time*/){ *matrix = array; } template -void XYZTDataLayer::setMatrix(string& mname, double* inMatrix - , const size_t& sizein, size_t& sizeout, const double& time){ +void XYZTDataLayer::setMatrix(string& /*mname*/, double* /*inMatrix*/ + , const size_t& /*sizein*/, size_t& /*sizeout*/, const double& /*time*/){ // writing the incoming (array in matrix // should not be done with this type of layer } @@ -523,7 +523,7 @@ void XYZTDataLayer::dumpAsBinary(string filename, const double& time } template -void XYZTDataLayer::setProjectionDirVector(FFVector& stimuliScaler, FFPoint& stimuliLocation){ +void XYZTDataLayer::setProjectionDirVector(FFVector& stimuliScaler, FFPoint& /*stimuliLocation*/){ if ( interp == InterpolationBilinearCoeff ){ interDirScaler=stimuliScaler.getVx(); interDirRatio=stimuliScaler.getVy(); diff --git a/src/PropagativeLayer.h b/src/PropagativeLayer.h index dae0cb07..05ee910b 100644 --- a/src/PropagativeLayer.h +++ b/src/PropagativeLayer.h @@ -111,7 +111,7 @@ template class PropagativeLayer : public DataLayer { size_t getValuesAt(FireNode*, PropagationModel*, size_t); /*! \brief directly stores the desired values in a given array */ size_t getValuesAt(FFPoint, const double&, FluxModel*, size_t); - void setValueAt(FFPoint loc, double tval, T value){}; + void setValueAt(FFPoint /*loc*/, double /*tval*/, T /*value*/){}; /*! \brief getter to the pointer on the FFArray */ void getMatrix(FFArray**, const double&); /*! \brief stores data from a fortran array into the FFArray */ @@ -177,37 +177,37 @@ int PropagativeLayer::getModelIndexAt(FireNode* fn){ } template -T PropagativeLayer::getValueAt(FireNode* fn){ +T PropagativeLayer::getValueAt(FireNode* /*fn*/){ cout<<"WARNING: PropagativeLayer::getValueAt() " <<"shouldn't have been called"< -T PropagativeLayer::getValueAt(FFPoint loc, const double& t){ +T PropagativeLayer::getValueAt(FFPoint /*loc*/, const double& /*t*/){ cout<<"WARNING: PropagativeLayer::getValueAt() " <<"shouldn't have been called"< -size_t PropagativeLayer::getValuesAt(FireNode* fn - , PropagationModel* model, size_t curItem){ +size_t PropagativeLayer::getValuesAt(FireNode* /*fn*/ + , PropagationModel* /*model*/, size_t /*curItem*/){ cout<<"WARNING: PropagativeLayer::getValuesAt() " <<"shouldn't have been called"< -size_t PropagativeLayer::getValuesAt(FFPoint loc, const double& t - , FluxModel* model, size_t curItem){ +size_t PropagativeLayer::getValuesAt(FFPoint /*loc*/, const double& /*t*/ + , FluxModel* /*model*/, size_t /*curItem*/){ cout<<"WARNING: PropagativeLayer::getValuesAt() " <<"shouldn't have been called"< -void PropagativeLayer::getMatrix(FFArray** lmatrix, const double& t){ +void PropagativeLayer::getMatrix(FFArray** lmatrix, const double& /*t*/){ @@ -255,8 +255,8 @@ void PropagativeLayer::getMatrix(FFArray** lmatrix, const double& t){ } template -void PropagativeLayer::setMatrix(string& mname, double* inMatrix - , const size_t& sizein, size_t& sizeout, const double& time){ +void PropagativeLayer::setMatrix(string& /*mname*/, double* /*inMatrix*/ + , const size_t& /*sizein*/, size_t& /*sizeout*/, const double& /*time*/){ cout<<"WARNING: PropagativeLayer::setMatrix() " <<"shouldn't have been called"<::print(){ } template -string PropagativeLayer::print2D(size_t i, size_t j){ +string PropagativeLayer::print2D(size_t /*i*/, size_t /*j*/){ cout<<"WARNING: PropagativeLayer::print2D() " <<"shouldn't have been called"< -void PropagativeLayer::dumpAsBinary(string filename, const double& time - , FFPoint& SWC, FFPoint& NEC, size_t& nnx, size_t& nny){ +void PropagativeLayer::dumpAsBinary(string /*filename*/, const double& /*time*/ + , FFPoint& /*SWC*/, FFPoint& /*NEC*/, size_t& /*nnx*/, size_t& /*nny*/){ cout<<"WARNING: PropagativeLayer::dumpAsBinary() " <<"shouldn't have been called"< class RosLayer : public DataLayer { size_t getValuesAt(FireNode*, PropagationModel*, size_t); /*! \brief directly stores the desired values in a given array */ size_t getValuesAt(FFPoint, const double&, FluxModel*, size_t); - void setValueAt(FFPoint loc, double tval, T value){}; + void setValueAt(FFPoint /*loc*/, double /*tval*/, T /*value*/){}; /*! \brief getter to the pointer on the FFArray */ void getMatrix(FFArray**, const double&); /*! \brief stores data from a fortran array into the FFArray */ @@ -105,24 +105,24 @@ T RosLayer::getValueAt(FireNode* fn){ } template -T RosLayer::getValueAt(FFPoint loc, const double& time){ +T RosLayer::getValueAt(FFPoint loc, const double& /*time*/){ return getNearestData(loc); } template -size_t RosLayer::getValuesAt(FireNode* fn - , PropagationModel* model, size_t curItem){ +size_t RosLayer::getValuesAt(FireNode* /*fn*/ + , PropagationModel* /*model*/, size_t /*curItem*/){ return 0; } template -size_t RosLayer::getValuesAt(FFPoint loc, const double& t - , FluxModel* model, size_t curItem){ +size_t RosLayer::getValuesAt(FFPoint /*loc*/, const double& /*t*/ + , FluxModel* /*model*/, size_t /*curItem*/){ return 0; } template -T RosLayer::getNearestData(FFPoint loc){ +T RosLayer::getNearestData(FFPoint /*loc*/){ cout<<"RosLayer::getNearestData() " <<"shouldn't have been called"<::getMatrix( } template -void RosLayer::setMatrix(string& mname, double* inMatrix - , const size_t& sizein, size_t& sizeout, const double& time){ +void RosLayer::setMatrix(string& /*mname*/, double* inMatrix + , const size_t& sizein, size_t& /*sizeout*/, const double& /*time*/){ if ( rosMap->getSize() == sizein ){ rosMap->copyDataFromFortran(inMatrix); } else { @@ -163,8 +163,8 @@ string RosLayer::print2D(size_t i, size_t j){ } template -void RosLayer::dumpAsBinary(string filename, const double& time - , FFPoint& SWC, FFPoint& NEC, size_t& nnx, size_t& nny){ +void RosLayer::dumpAsBinary(string filename, const double& /*time*/ + , FFPoint& /*SWC*/, FFPoint& /*NEC*/, size_t& /*nnx*/, size_t& /*nny*/){ /* writing the matrix in a binary file */ ostringstream outputfile; outputfile<getKey(); diff --git a/src/StringRepresentation.cpp b/src/StringRepresentation.cpp index f3bf6f29..cfed0eb9 100644 --- a/src/StringRepresentation.cpp +++ b/src/StringRepresentation.cpp @@ -241,7 +241,7 @@ void StringRepresentation::visit(FireNode* fn) { // postVisitInner: called after a FireFront's nodes but before processing its internals. // For GEOJSON mode, reverse the current ring to mimic the Python [::-1] behavior. -void StringRepresentation::postVisitInner(FireFront* ff) { +void StringRepresentation::postVisitInner(FireFront* /*ff*/) { if (dumpMode == JSON_MODE) { // outputstr << "\"" << endl << "\t}"; } @@ -265,7 +265,7 @@ void StringRepresentation::postVisitInner(FireFront* ff) { // postVisitAll: called at the very end after processing internals. // For GEOJSON mode, if finishing a top–level FireFront (currentLevel==1), build and output its Feature. -void StringRepresentation::postVisitAll(FireFront* ff) { +void StringRepresentation::postVisitAll(FireFront* /*ff*/) { if (dumpMode == JSON_MODE) { // (JSON mode unchanged) } @@ -322,8 +322,8 @@ void StringRepresentation::postVisitAll(FireFront* ff) { } } -void StringRepresentation::postVisitInner(FireDomain* fd) { } -void StringRepresentation::postVisitAll(FireDomain* fd) { } +void StringRepresentation::postVisitInner(FireDomain* /*fd*/) { } +void StringRepresentation::postVisitAll(FireDomain* /*fd*/) { } string StringRepresentation::dumpStringRepresentation() { // Set dump mode based on simulation parameters. diff --git a/src/TimeGradientDataLayer.h b/src/TimeGradientDataLayer.h index 2ab715a3..3449c2d0 100644 --- a/src/TimeGradientDataLayer.h +++ b/src/TimeGradientDataLayer.h @@ -47,7 +47,7 @@ template class TimeGradientDataLayer: public DataLayer { /*! \brief directly stores the desired values in a given array */ size_t getValuesAt(FireNode*, PropagationModel*, size_t); - void setValueAt(FFPoint p , double vt, T value){}; + void setValueAt(FFPoint /*p*/ , double /*vt*/, T /*value*/){}; /*! \brief directly stores the desired values in a given array */ size_t getValuesAt(FFPoint, const double&, FluxModel*, size_t); @@ -88,31 +88,31 @@ T TimeGradientDataLayer::getValueAt(FireNode* fn){ } template -T TimeGradientDataLayer::getValueAt(FFPoint loc, const double& time){ +T TimeGradientDataLayer::getValueAt(FFPoint /*loc*/, const double& /*time*/){ cout << "this call shouln't be used in a gradient layer" << endl; return 0.; } template -size_t TimeGradientDataLayer::getValuesAt(FireNode* fn - , PropagationModel* model, size_t curItem){ +size_t TimeGradientDataLayer::getValuesAt(FireNode* /*fn*/ + , PropagationModel* /*model*/, size_t /*curItem*/){ return 0; } template -size_t TimeGradientDataLayer::getValuesAt(FFPoint loc, const double& t - , FluxModel* model, size_t curItem){ +size_t TimeGradientDataLayer::getValuesAt(FFPoint /*loc*/, const double& /*t*/ + , FluxModel* /*model*/, size_t /*curItem*/){ return 0; } template void TimeGradientDataLayer::getMatrix( - FFArray** matrix, const double& time){ + FFArray** /*matrix*/, const double& /*time*/){ } template -void TimeGradientDataLayer::setMatrix(string& mname, double* inMatrix - , const size_t& sizein, size_t& sizeout, const double& time){ +void TimeGradientDataLayer::setMatrix(string& /*mname*/, double* /*inMatrix*/ + , const size_t& /*sizein*/, size_t& /*sizeout*/, const double& /*time*/){ // writing the incoming data in matrix // should not be done with this type of layer } @@ -123,8 +123,8 @@ string TimeGradientDataLayer::print(){ } template -void TimeGradientDataLayer::dumpAsBinary(string filename, const double& time - , FFPoint& SWC, FFPoint& NEC, size_t& nnx, size_t& nny){ +void TimeGradientDataLayer::dumpAsBinary(string /*filename*/, const double& /*time*/ + , FFPoint& /*SWC*/, FFPoint& /*NEC*/, size_t& /*nnx*/, size_t& /*nny*/){ } diff --git a/src/TwoTimeArrayLayer.h b/src/TwoTimeArrayLayer.h index cfa0dc9b..00b756e0 100644 --- a/src/TwoTimeArrayLayer.h +++ b/src/TwoTimeArrayLayer.h @@ -103,7 +103,7 @@ template class TwoTimeArrayLayer : public DataLayer { size_t getValuesAt(FireNode*, PropagationModel*, size_t); /*! \brief directly stores the desired values in a given array */ size_t getValuesAt(FFPoint, const double&, FluxModel*, size_t); - void setValueAt(FFPoint loc, double tval, T value){}; + void setValueAt(FFPoint /*loc*/, double /*tval*/, T /*value*/){}; /*! \brief getter to the pointer on the FFArray */ void getMatrix(FFArray**, const double&); /*! \brief stores data from a fortran array into the FFArray */ @@ -147,14 +147,14 @@ T TwoTimeArrayLayer::getValueAt(FFPoint loc, const double& time){ } template -size_t TwoTimeArrayLayer::getValuesAt(FireNode* fn - , PropagationModel* model, size_t curItem){ +size_t TwoTimeArrayLayer::getValuesAt(FireNode* /*fn*/ + , PropagationModel* /*model*/, size_t /*curItem*/){ return 0; } template -size_t TwoTimeArrayLayer::getValuesAt(FFPoint loc, const double& t - , FluxModel* model, size_t curItem){ +size_t TwoTimeArrayLayer::getValuesAt(FFPoint /*loc*/, const double& /*t*/ + , FluxModel* /*model*/, size_t /*curItem*/){ return 0; } @@ -263,7 +263,7 @@ T TwoTimeArrayLayer::bilinearInterp(FFPoint loc, const double& time){ } template -void TwoTimeArrayLayer::getMatrix(FFArray** matrix, const double& time){ +void TwoTimeArrayLayer::getMatrix(FFArray** matrix, const double& /*time*/){ *matrix = arrayt2; } @@ -287,8 +287,8 @@ template void TwoTimeArrayLayer::loadMultiWindBin(string filePatt } template -void TwoTimeArrayLayer::setMatrix(string& mname, double* inMatrix - , const size_t& sizein, size_t& sizeout, const double& newTime){ +void TwoTimeArrayLayer::setMatrix(string& /*mname*/, double* inMatrix + , const size_t& sizein, size_t& /*sizeout*/, const double& newTime){ if ( tmpMatrix->getSize() == sizein ){ /* Information concerning the whole domain */ @@ -315,8 +315,8 @@ string TwoTimeArrayLayer::print(){ template -void TwoTimeArrayLayer::dumpAsBinary(string filename, const double& t - , FFPoint& SWC, FFPoint& NEC, size_t& nnx, size_t& nny){ +void TwoTimeArrayLayer::dumpAsBinary(string /*filename*/, const double& /*t*/ + , FFPoint& /*SWC*/, FFPoint& /*NEC*/, size_t& /*nnx*/, size_t& /*nny*/){ /* If outputs needs to be sync with outputs (no live debug)