Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions vpmDB/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ if ( USE_MEMPOOL )
string ( APPEND CMAKE_CXX_FLAGS " -DFT_USE_MEMPOOL" )
endif ( USE_MEMPOOL )

if ( USE_PROFILER )
string ( APPEND CMAKE_CXX_FLAGS " -DFT_USE_PROFILER" )
endif ( USE_PROFILER )

if ( USE_VISUALS )
string ( APPEND CMAKE_CXX_FLAGS " -DFT_USE_VISUALS" )
endif ( USE_VISUALS )
Expand Down
34 changes: 14 additions & 20 deletions vpmDB/FmPart.C
Original file line number Diff line number Diff line change
Expand Up @@ -1464,6 +1464,13 @@ bool FmPart::importPart(const std::string& fileName,

fileVersion = 1; // Don't care about file version on import
nFENodesTotal += myFEData->getNodeCount();
#ifdef FT_USE_PROFILER
#ifdef FT_USE_CMDLINEARG
int memPoll = 0;
FFaCmdLineArg::instance()->getValue("memPoll",memPoll);
if (memPoll > 0) myFEData->dump(this->getLinkIDString(true));
#endif
#endif

needsCSupdate.setValue(true);
originalFEFile.setValue(newFEFile);
Expand Down Expand Up @@ -1509,16 +1516,6 @@ bool FmPart::importPart(const std::string& fileName,
this->updateMassProperties();
this->updateLoadCases();

#ifdef FT_USE_CMDLINEARG
bool doMemPoll = false;
FFaCmdLineArg::instance()->getValue("memPoll",doMemPoll);
if (doMemPoll)
{
std::cout << this->getLinkIDString() << std::endl;
myFEData->dump();
}
#endif

// Check if the number of component modes was specified on the FE data file
if (myFEData->getNumberOfGenDofs())
nGenModes.setValue(myFEData->getNumberOfGenDofs());
Expand Down Expand Up @@ -1637,22 +1634,19 @@ bool FmPart::openFEData()
{
FFaMsg::list(" ...OK\n");
nFENodesTotal += myFEData->getNodeCount();
#ifdef FT_USE_PROFILER
#ifdef FT_USE_CMDLINEARG
int memPoll = 0;
FFaCmdLineArg::instance()->getValue("memPoll",memPoll);
if (memPoll > 0) myFEData->dump(this->getLinkIDString(true));
#endif
#endif

this->updateElemGroupProxies();
this->updateMassProperties();
this->updateLoadCases();

savedCS.setValue(myFEData->calculateChecksum());

#ifdef FT_USE_CMDLINEARG
bool doMemPoll = false;
FFaCmdLineArg::instance()->getValue("memPoll",doMemPoll);
if (doMemPoll)
{
std::cout << this->getLinkIDString() << std::endl;
myFEData->dump();
}
#endif
}
else if (myFEData->isTooLarge())
{
Expand Down
2 changes: 1 addition & 1 deletion vpmDB/FmSolverInput.C
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ std::string Fedem::createReducerInput(FmAnalysis* analysis,
if (analysis->useRamSizeGSF.getValue())
{
// Use the out-of-core GSF equation solver
if (addOptions.find("-gsfSolver") != std::string::npos)
if (addOptions.find("-gsfSolver") == std::string::npos)
fcoArgs.add("-gsfSolver",2);
if (analysis->autoRamSizeGSF.getValue())
fcoArgs.add("-cachesize",0);
Expand Down