fixed: print size_t using %zu, not %lu
This commit is contained in:
@@ -251,7 +251,7 @@ Vector* IntegrandBase::getNamedVector (const std::string& name) const
|
||||
std::string IntegrandBase::getField1Name (size_t idx, const char* prefix) const
|
||||
{
|
||||
char name[32];
|
||||
sprintf(name,"primary solution %lu",1+idx);
|
||||
sprintf(name,"primary solution %zu",1+idx);
|
||||
return prefix ? prefix + std::string(" ") + name : name;
|
||||
}
|
||||
|
||||
@@ -259,7 +259,7 @@ std::string IntegrandBase::getField1Name (size_t idx, const char* prefix) const
|
||||
std::string IntegrandBase::getField2Name (size_t idx, const char* prefix) const
|
||||
{
|
||||
char name[32];
|
||||
sprintf(name,"secondary solution %lu",1+idx);
|
||||
sprintf(name,"secondary solution %zu",1+idx);
|
||||
return prefix ? prefix + std::string(" ") + name : name;
|
||||
}
|
||||
|
||||
@@ -399,7 +399,7 @@ bool NormBase::initElementBou (const std::vector<int>& MNPC,
|
||||
std::string NormBase::getName (size_t i, size_t j, const char* prefix) const
|
||||
{
|
||||
char comp[32];
|
||||
sprintf(comp,"norm_%lu.%lu",i,j);
|
||||
sprintf(comp,"norm_%zu.%zu",i,j);
|
||||
if (!prefix) return comp;
|
||||
|
||||
return prefix + std::string(" ") + comp;
|
||||
|
||||
@@ -1186,7 +1186,7 @@ bool SIMinput::refine (const LR::RefineData& prm,
|
||||
prmloc.elements = IntVec(refineIndices[i].begin(),refineIndices[i].end());
|
||||
char patchName[256];
|
||||
if (fName)
|
||||
sprintf(patchName, "%lu_%s", i, fName);
|
||||
sprintf(patchName, "%zu_%s", i, fName);
|
||||
|
||||
Vectors lsol(sol.size());
|
||||
for (size_t j = 0; j < sol.size(); ++j)
|
||||
|
||||
Reference in New Issue
Block a user