Merge branch 'master' into particleInteractions

This commit is contained in:
graham
2009-09-02 14:44:16 +01:00
7 changed files with 29 additions and 35 deletions

View File

@ -211,12 +211,6 @@ Foam::forces::forces
}
read(dict);
if (active_)
{
// Create the forces file if not already created
makeFile();
}
}
@ -317,16 +311,18 @@ void Foam::forces::makeFile()
if (Pstream::master())
{
fileName forcesDir;
word startTimeName =
obr_.time().timeName(obr_.time().startTime().value());
if (Pstream::parRun())
{
// Put in undecomposed case (Note: gives problems for
// distributed data running)
forcesDir =
obr_.time().path()/".."/name_/obr_.time().timeName();
forcesDir = obr_.time().path()/".."/name_/startTimeName;
}
else
{
forcesDir = obr_.time().path()/name_/obr_.time().timeName();
forcesDir = obr_.time().path()/name_/startTimeName;
}
// Create directory if does not exist.

View File

@ -67,8 +67,9 @@ int yyFlexLexer::yywrap()
Foam::string foamSpecieString(const char* YYText)
{
Foam::string specieString(YYText);
specieString.replaceAll('(', '<');
specieString.replaceAll(')', '>');
// Transforming parentheses is no longer necessary
//specieString.replaceAll('(', '<');
//specieString.replaceAll(')', '>');
return specieString;
}
@ -804,7 +805,7 @@ bool finishReaction = false;
}
else
{
currentSpecieName = keyword;
currentSpecieName = foamName(foamSpecieString(YYText()));
HashTable<label>::iterator specieIndexIter
(