remove fvCFD.H usage from remaining library source

- exception calcType.H since it'll most likely be used for building
  applications anyhow

- use quailified names in more of the lagrangian code

- killed some tab indents in various places.
This commit is contained in:
Mark Olesen
2009-12-02 15:34:52 +01:00
parent 2f8c7782f4
commit 00985638d8
91 changed files with 829 additions and 1155 deletions

View File

@ -22,8 +22,6 @@ License
along with OpenFOAM; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Description
\*---------------------------------------------------------------------------*/
#include <unistd.h>
@ -44,7 +42,7 @@ unsigned int Foam::timer::oldTimeOut_ = 0;
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //
void Foam::timer::signalHandler(int)
{
{
if (debug)
{
Info<< "Foam::timer::signalHandler(int sig) : "
@ -56,8 +54,6 @@ void Foam::timer::signalHandler(int)
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components
Foam::timer::timer(const unsigned int newTimeOut)
:
newTimeOut_(newTimeOut)
@ -72,7 +68,7 @@ Foam::timer::timer(const unsigned int newTimeOut)
(
"Foam::timer::timer(const unsigned int)"
) << "timer already used."
<< abort(FatalError);
<< abort(FatalError);
}
// Install alarm signal handler:
@ -80,7 +76,7 @@ Foam::timer::timer(const unsigned int newTimeOut)
// - clear list of signals to mask
struct sigaction newAction;
newAction.sa_handler = timer::signalHandler;
newAction.sa_flags = SA_NODEFER;
newAction.sa_flags = SA_NODEFER;
sigemptyset(&newAction.sa_mask);
if (sigaction(SIGALRM, &newAction, &oldAction_) < 0)
@ -89,7 +85,7 @@ Foam::timer::timer(const unsigned int newTimeOut)
(
"Foam::timer::timer(const unsigned int)"
) << "sigaction(SIGALRM) error"
<< abort(FatalError);
<< abort(FatalError);
}
oldTimeOut_ = ::alarm(newTimeOut);
@ -131,7 +127,7 @@ Foam::timer::~timer()
"Foam::timer::~timer(const struct sigaction&"
"const struct sigaction&)"
) << "sigaction(SIGALRM) error"
<< abort(FatalError);
<< abort(FatalError);
}
}
}