mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Added IInfo macro for indented output to Info
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -218,7 +218,7 @@ extern messageStream Info;
|
|||||||
* Report an error message using Foam::SeriousError for functionName in
|
* Report an error message using Foam::SeriousError for functionName in
|
||||||
* file __FILE__ at line __LINE__
|
* file __FILE__ at line __LINE__
|
||||||
*/
|
*/
|
||||||
#define SeriousErrorIn(fn) \
|
#define SeriousErrorIn(fn) \
|
||||||
::Foam::SeriousError((fn), __FILE__, __LINE__)
|
::Foam::SeriousError((fn), __FILE__, __LINE__)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -227,7 +227,7 @@ extern messageStream Info;
|
|||||||
* file __FILE__ at line __LINE__
|
* file __FILE__ at line __LINE__
|
||||||
* for a particular IOstream
|
* for a particular IOstream
|
||||||
*/
|
*/
|
||||||
#define SeriousIOErrorIn(fn, ios) \
|
#define SeriousIOErrorIn(fn, ios) \
|
||||||
::Foam::SeriousError((fn), __FILE__, __LINE__, ios)
|
::Foam::SeriousError((fn), __FILE__, __LINE__, ios)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -235,7 +235,7 @@ extern messageStream Info;
|
|||||||
* Report a warning using Foam::Warning for functionName in
|
* Report a warning using Foam::Warning for functionName in
|
||||||
* file __FILE__ at line __LINE__
|
* file __FILE__ at line __LINE__
|
||||||
*/
|
*/
|
||||||
#define WarningIn(fn) \
|
#define WarningIn(fn) \
|
||||||
::Foam::Warning((fn), __FILE__, __LINE__)
|
::Foam::Warning((fn), __FILE__, __LINE__)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -244,7 +244,7 @@ extern messageStream Info;
|
|||||||
* file __FILE__ at line __LINE__
|
* file __FILE__ at line __LINE__
|
||||||
* for a particular IOstream
|
* for a particular IOstream
|
||||||
*/
|
*/
|
||||||
#define IOWarningIn(fn, ios) \
|
#define IOWarningIn(fn, ios) \
|
||||||
::Foam::Warning((fn), __FILE__, __LINE__, (ios))
|
::Foam::Warning((fn), __FILE__, __LINE__, (ios))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -252,7 +252,7 @@ extern messageStream Info;
|
|||||||
* Report a information message using Foam::Info for functionName in
|
* Report a information message using Foam::Info for functionName in
|
||||||
* file __FILE__ at line __LINE__
|
* file __FILE__ at line __LINE__
|
||||||
*/
|
*/
|
||||||
#define InfoIn(fn) \
|
#define InfoIn(fn) \
|
||||||
::Foam::Info((fn), __FILE__, __LINE__)
|
::Foam::Info((fn), __FILE__, __LINE__)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -261,7 +261,7 @@ extern messageStream Info;
|
|||||||
* file __FILE__ at line __LINE__
|
* file __FILE__ at line __LINE__
|
||||||
* for a particular IOstream
|
* for a particular IOstream
|
||||||
*/
|
*/
|
||||||
#define IOInfoIn(fn, ios) \
|
#define IOInfoIn(fn, ios) \
|
||||||
::Foam::Info((fn), __FILE__, __LINE__, (ios))
|
::Foam::Info((fn), __FILE__, __LINE__, (ios))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -269,10 +269,17 @@ extern messageStream Info;
|
|||||||
* Report a variable name and value using Foam::Pout in
|
* Report a variable name and value using Foam::Pout in
|
||||||
* file __FILE__ at line __LINE__
|
* file __FILE__ at line __LINE__
|
||||||
*/
|
*/
|
||||||
#define Debug(var) \
|
#define Debug(var) \
|
||||||
::Foam::Pout<< "["<< __FILE__ << ":" << __LINE__ << "] " \
|
::Foam::Pout<< "["<< __FILE__ << ":" << __LINE__ << "] " \
|
||||||
<< #var " = " << var << ::Foam::endl
|
<< #var " = " << var << ::Foam::endl
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \def IInfo
|
||||||
|
* Indented Info
|
||||||
|
*/
|
||||||
|
#define IInfo \
|
||||||
|
::Foam::Info<< indent
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user