mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev
Conflicts: src/OpenFOAM/containers/Lists/DynamicList/DynamicList.H src/postProcessing/functionObjects/field/fieldValues/cellSource/cellSource.C src/postProcessing/functionObjects/field/fieldValues/faceSource/faceSource.C
This commit is contained in:
@ -56,10 +56,9 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~ODE()
|
||||
{}
|
||||
//- Destructor
|
||||
virtual ~ODE()
|
||||
{}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -103,10 +103,9 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~ODESolver()
|
||||
{}
|
||||
//- Destructor
|
||||
virtual ~ODESolver()
|
||||
{}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -102,9 +102,8 @@ public:
|
||||
//- Construct from std::string (or string), optionally ignoring case
|
||||
regExp(const std::string&, const bool ignoreCase=false);
|
||||
|
||||
// Destructor
|
||||
|
||||
~regExp();
|
||||
//- Destructor
|
||||
~regExp();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -99,9 +99,8 @@ public:
|
||||
sigFpe();
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~sigFpe();
|
||||
//- Destructor
|
||||
~sigFpe();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -70,9 +70,8 @@ public:
|
||||
sigInt();
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~sigInt();
|
||||
//- Destructor
|
||||
~sigInt();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -70,9 +70,8 @@ public:
|
||||
sigQuit();
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~sigQuit();
|
||||
//- Destructor
|
||||
~sigQuit();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -70,9 +70,8 @@ public:
|
||||
sigSegv();
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~sigSegv();
|
||||
//- Destructor
|
||||
~sigSegv();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -117,9 +117,8 @@ public:
|
||||
timer(const unsigned int newTimeOut);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~timer();
|
||||
//- Destructor
|
||||
~timer();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -40,7 +40,7 @@ namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class subCycle Declaration
|
||||
Class subCycle Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
template<class GeometricField>
|
||||
@ -79,21 +79,19 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor
|
||||
//- Destructor
|
||||
~subCycle()
|
||||
{
|
||||
// End the subCycleTime, which restores the time state
|
||||
endSubCycle();
|
||||
|
||||
~subCycle()
|
||||
{
|
||||
// End the subCycleTime which restores the time state
|
||||
endSubCycle();
|
||||
// Correct the time index of the field to correspond to the global time
|
||||
gf_.timeIndex() = gf_.time().timeIndex();
|
||||
|
||||
// Correct the time index of the field to correspond to the global
|
||||
// time
|
||||
gf_.timeIndex() = gf_.time().timeIndex();
|
||||
|
||||
// Reset the old-time field value
|
||||
gf_.oldTime() = gf0_;
|
||||
gf_.oldTime().timeIndex() = gf_.time().timeIndex();
|
||||
}
|
||||
// Reset the old-time field value
|
||||
gf_.oldTime() = gf0_;
|
||||
gf_.oldTime().timeIndex() = gf_.time().timeIndex();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -95,9 +95,8 @@ public:
|
||||
HashPtrTable(const HashPtrTable<T, Key, Hash>&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~HashPtrTable();
|
||||
//- Destructor
|
||||
~HashPtrTable();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -80,7 +80,7 @@ Foam::Keyed<T>::createList(const List<T>& lst, const label key)
|
||||
{
|
||||
List<Keyed<T> > newList(lst.size());
|
||||
|
||||
forAll (lst, elemI)
|
||||
forAll(lst, elemI)
|
||||
{
|
||||
newList[elemI] = Keyed(lst[elemI], key);
|
||||
}
|
||||
@ -106,7 +106,7 @@ Foam::Keyed<T>::createList(const List<T>& lst, const List<label>& keys)
|
||||
|
||||
List<Keyed<T> > newList(lst.size());
|
||||
|
||||
forAll (lst, elemI)
|
||||
forAll(lst, elemI)
|
||||
{
|
||||
newList[elemI] = Keyed(lst[elemI], keys[elemI]);
|
||||
}
|
||||
|
||||
@ -120,9 +120,8 @@ public:
|
||||
ILList(Istream&, const INew&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~ILList();
|
||||
//- Destructor
|
||||
~ILList();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -122,9 +122,8 @@ public:
|
||||
LList(const LList<LListBase, T>&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~LList();
|
||||
//- Destructor
|
||||
~LList();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -112,9 +112,8 @@ public:
|
||||
LPtrList(const LPtrList&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~LPtrList();
|
||||
//- Destructor
|
||||
~LPtrList();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -110,9 +110,8 @@ public:
|
||||
inline DLListBase(link*);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~DLListBase();
|
||||
//- Destructor
|
||||
~DLListBase();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -107,9 +107,8 @@ public:
|
||||
inline SLListBase(link*);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~SLListBase();
|
||||
//- Destructor
|
||||
~SLListBase();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -113,7 +113,7 @@ public:
|
||||
//- Construct by transferring the parameter contents
|
||||
explicit inline DynamicList(const Xfer<List<T> >&);
|
||||
|
||||
//- Construct from Istream. Size set to size of read list.
|
||||
//- Construct from Istream. Size set to size of list read.
|
||||
explicit DynamicList(Istream&);
|
||||
|
||||
|
||||
@ -138,7 +138,8 @@ public:
|
||||
// setting values (as per List usage).
|
||||
inline void setSize(const label);
|
||||
|
||||
//- Alter the addressed list size and fill new space with a constant.
|
||||
//- Alter the addressed list size and fill new space with a
|
||||
// constant.
|
||||
inline void setSize(const label, const T&);
|
||||
|
||||
//- Alter the addressed list size.
|
||||
@ -147,7 +148,8 @@ public:
|
||||
// setting values (as per List usage).
|
||||
inline void resize(const label);
|
||||
|
||||
//- Alter the addressed list size and fill new space with a constant.
|
||||
//- Alter the addressed list size and fill new space with a
|
||||
// constant.
|
||||
inline void resize(const label, const T&);
|
||||
|
||||
//- Reserve allocation space for at least this size.
|
||||
@ -165,10 +167,10 @@ public:
|
||||
// Returns a reference to the DynamicList.
|
||||
inline DynamicList<T, SizeInc, SizeMult, SizeDiv>& shrink();
|
||||
|
||||
//- Transfer contents of the argument List into this DynamicList
|
||||
//- Transfer contents of the argument List into this.
|
||||
inline void transfer(List<T>&);
|
||||
|
||||
//- Transfer contents of the argument DynamicList into this DynamicList
|
||||
//- Transfer contents of the argument DynamicList into this.
|
||||
inline void transfer(DynamicList<T, SizeInc, SizeMult, SizeDiv>&);
|
||||
|
||||
//- Transfer contents to the Xfer container as a plain List
|
||||
@ -189,7 +191,8 @@ public:
|
||||
//- Remove and return the top element
|
||||
inline T remove();
|
||||
|
||||
//- Return non-const access to an element, resizing list if necessary
|
||||
//- Return non-const access to an element, resizing list if
|
||||
// necessary
|
||||
inline T& operator()(const label);
|
||||
|
||||
//- Assignment of all addressed entries to the given value
|
||||
|
||||
@ -76,9 +76,8 @@ public:
|
||||
Callback(const Callback<CallbackType>&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~Callback();
|
||||
//- Destructor
|
||||
virtual ~Callback();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -86,9 +86,8 @@ public:
|
||||
CallbackRegistry();
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~CallbackRegistry();
|
||||
//- Destructor
|
||||
virtual ~CallbackRegistry();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -219,9 +219,8 @@ public:
|
||||
}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~IOobject();
|
||||
//- Destructor
|
||||
virtual ~IOobject();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -152,12 +152,7 @@ Foam::IOobjectList Foam::IOobjectList::lookupClass(const word& ClassName) const
|
||||
{
|
||||
IOobjectList objectsOfClass(size());
|
||||
|
||||
for
|
||||
(
|
||||
HashPtrTable<IOobject>::const_iterator iter = begin();
|
||||
iter != end();
|
||||
++iter
|
||||
)
|
||||
forAllConstIter(HashPtrTable<IOobject>, *this, iter)
|
||||
{
|
||||
if (iter()->headerClassName() == ClassName)
|
||||
{
|
||||
@ -192,12 +187,7 @@ Foam::wordList Foam::IOobjectList::names(const word& ClassName) const
|
||||
wordList objectNames(size());
|
||||
|
||||
label count = 0;
|
||||
for
|
||||
(
|
||||
HashPtrTable<IOobject>::const_iterator iter = begin();
|
||||
iter != end();
|
||||
++iter
|
||||
)
|
||||
forAllConstIter(HashPtrTable<IOobject>, *this, iter)
|
||||
{
|
||||
if (iter()->headerClassName() == ClassName)
|
||||
{
|
||||
|
||||
@ -76,9 +76,8 @@ public:
|
||||
IOobjectList(const IOobjectList&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~IOobjectList();
|
||||
//- Destructor
|
||||
~IOobjectList();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -74,9 +74,8 @@ public:
|
||||
IOField(const IOobject&, const Xfer<Field<Type> >&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~IOField();
|
||||
//- Destructor
|
||||
virtual ~IOField();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -75,9 +75,8 @@ public:
|
||||
IOList(const IOobject&, const Xfer<List<T> >&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~IOList();
|
||||
//- Destructor
|
||||
virtual ~IOList();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -75,9 +75,8 @@ public:
|
||||
IOMap(const IOobject&, const Xfer<Map<T> >&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~IOMap();
|
||||
//- Destructor
|
||||
virtual ~IOMap();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -79,9 +79,8 @@ public:
|
||||
IOPtrList(const IOobject&, const Xfer<PtrList<T> >&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~IOPtrList();
|
||||
//- Destructor
|
||||
virtual ~IOPtrList();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -71,9 +71,8 @@ public:
|
||||
IOdictionary(const IOobject&, const dictionary&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~IOdictionary();
|
||||
//- Destructor
|
||||
virtual ~IOdictionary();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -70,9 +70,8 @@ class IFstreamAllocator
|
||||
IFstreamAllocator(const fileName& pathname);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~IFstreamAllocator();
|
||||
//- Destructor
|
||||
~IFstreamAllocator();
|
||||
};
|
||||
|
||||
|
||||
@ -106,9 +105,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~IFstream();
|
||||
//- Destructor
|
||||
~IFstream();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -69,9 +69,8 @@ class OFstreamAllocator
|
||||
IOstream::compressionType compression=IOstream::UNCOMPRESSED
|
||||
);
|
||||
|
||||
// Destructor
|
||||
|
||||
~OFstreamAllocator();
|
||||
//- Destructor
|
||||
~OFstreamAllocator();
|
||||
|
||||
};
|
||||
|
||||
@ -108,9 +107,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~OFstream();
|
||||
//- Destructor
|
||||
~OFstream();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -288,10 +288,9 @@ public:
|
||||
}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~IOstream()
|
||||
{}
|
||||
//- Destructor
|
||||
virtual ~IOstream()
|
||||
{}
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -85,10 +85,9 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~Istream()
|
||||
{}
|
||||
//- Destructor
|
||||
virtual ~Istream()
|
||||
{}
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -131,9 +131,8 @@ public:
|
||||
IOstream::versionNumber version=IOstream::currentVersion
|
||||
);
|
||||
|
||||
// Destructor
|
||||
|
||||
~PstreamBuffers();
|
||||
//- Destructor
|
||||
~PstreamBuffers();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -106,9 +106,8 @@ public:
|
||||
UIPstream(const int fromProcNo, PstreamBuffers&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~UIPstream();
|
||||
//- Destructor
|
||||
~UIPstream();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -102,9 +102,8 @@ public:
|
||||
UOPstream(const int toProcNo, PstreamBuffers&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~UOPstream();
|
||||
//- Destructor
|
||||
~UOPstream();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -86,10 +86,9 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~ISstream()
|
||||
{}
|
||||
//- Destructor
|
||||
virtual ~ISstream()
|
||||
{}
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -92,12 +92,11 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~IStringStream()
|
||||
{
|
||||
delete &dynamic_cast<std::istringstream&>(stdStream());
|
||||
}
|
||||
//- Destructor
|
||||
~IStringStream()
|
||||
{
|
||||
delete &dynamic_cast<std::istringstream&>(stdStream());
|
||||
}
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -93,12 +93,11 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~OStringStream()
|
||||
{
|
||||
delete &dynamic_cast<std::ostringstream&>(stdStream());
|
||||
}
|
||||
//- Destructor
|
||||
~OStringStream()
|
||||
{
|
||||
delete &dynamic_cast<std::ostringstream&>(stdStream());
|
||||
}
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -165,12 +165,11 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~OSHA1stream()
|
||||
{
|
||||
delete &dynamic_cast<osha1stream&>(stdStream());
|
||||
}
|
||||
//- Destructor
|
||||
~OSHA1stream()
|
||||
{
|
||||
delete &dynamic_cast<osha1stream&>(stdStream());
|
||||
}
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -99,9 +99,8 @@ public:
|
||||
static autoPtr<CompoundToken> New(const word& type, Istream& is);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~CompoundToken();
|
||||
//- Destructor
|
||||
virtual ~CompoundToken();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -167,9 +167,8 @@ public:
|
||||
static autoPtr<compound> New(const word& type, Istream&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~compound();
|
||||
//- Destructor
|
||||
virtual ~compound();
|
||||
|
||||
|
||||
// Member Functions
|
||||
@ -309,9 +308,8 @@ public:
|
||||
token(Istream&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
inline ~token();
|
||||
//- Destructor
|
||||
inline ~token();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -518,11 +518,28 @@ bool Foam::Time::loop()
|
||||
|
||||
if (running)
|
||||
{
|
||||
operator++();
|
||||
if (!subCycling_)
|
||||
{
|
||||
readModifiedObjects();
|
||||
|
||||
if (timeIndex_ == startTimeIndex_)
|
||||
{
|
||||
functionObjects_.start();
|
||||
}
|
||||
else
|
||||
{
|
||||
functionObjects_.execute();
|
||||
}
|
||||
}
|
||||
|
||||
// Check update the "running" status following the "++" operation
|
||||
// to take into account possible side-effects from functionObjects
|
||||
running = run();
|
||||
|
||||
if (running)
|
||||
{
|
||||
operator++();
|
||||
}
|
||||
}
|
||||
|
||||
return running;
|
||||
@ -667,20 +684,6 @@ Foam::Time& Foam::Time::operator+=(const scalar deltaT)
|
||||
|
||||
Foam::Time& Foam::Time::operator++()
|
||||
{
|
||||
if (!subCycling_)
|
||||
{
|
||||
readModifiedObjects();
|
||||
|
||||
if (timeIndex_ == startTimeIndex_)
|
||||
{
|
||||
functionObjects_.start();
|
||||
}
|
||||
else
|
||||
{
|
||||
functionObjects_.execute();
|
||||
}
|
||||
}
|
||||
|
||||
deltaT0_ = deltaTSave_;
|
||||
deltaTSave_ = deltaT_;
|
||||
|
||||
|
||||
@ -209,10 +209,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
//- Virtual destructor
|
||||
virtual ~Time();
|
||||
//- Destructor
|
||||
virtual ~Time();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -63,9 +63,8 @@ public:
|
||||
subCycleTime(Time&, const label nSubCycles);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~subCycleTime();
|
||||
//- Destructor
|
||||
~subCycleTime();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -502,7 +502,7 @@ Foam::wordList Foam::dictionary::toc() const
|
||||
wordList keys(size());
|
||||
|
||||
label nKeys = 0;
|
||||
forAllConstIter(IDLList<entry>::const_iterator, *this, iter)
|
||||
forAllConstIter(IDLList<entry>, *this, iter)
|
||||
{
|
||||
keys[nKeys++] = iter().keyword();
|
||||
}
|
||||
|
||||
@ -218,9 +218,8 @@ public:
|
||||
static autoPtr<dictionary> New(Istream&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~dictionary();
|
||||
//- Destructor
|
||||
~dictionary();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -54,7 +54,7 @@ Foam::dlLibraryTable::readDlLibrary::readDlLibrary
|
||||
|
||||
Foam::dlLibraryTable::~dlLibraryTable()
|
||||
{
|
||||
forAllIter(dlLibraryTable, *this, iter)
|
||||
forAllConstIter(dlLibraryTable, *this, iter)
|
||||
{
|
||||
dlclose(iter.key());
|
||||
}
|
||||
|
||||
@ -88,9 +88,8 @@ public:
|
||||
dlLibraryTable();
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~dlLibraryTable();
|
||||
//- Destructor
|
||||
~dlLibraryTable();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -97,9 +97,8 @@ public:
|
||||
error(const error&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~error() throw();
|
||||
//- Destructor
|
||||
virtual ~error() throw();
|
||||
|
||||
|
||||
// Member functions
|
||||
@ -213,9 +212,8 @@ public:
|
||||
IOerror(const dictionary&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~IOerror() throw();
|
||||
//- Destructor
|
||||
virtual ~IOerror() throw();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -135,9 +135,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~functionObject();
|
||||
//- Destructor
|
||||
virtual ~functionObject();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -91,8 +91,8 @@ public:
|
||||
outputFilterOutputControl(const Time&, const dictionary&);
|
||||
|
||||
|
||||
// Destructor
|
||||
~outputFilterOutputControl();
|
||||
//- Destructor
|
||||
~outputFilterOutputControl();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -101,9 +101,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~objectRegistry();
|
||||
//- Destructor
|
||||
virtual ~objectRegistry();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -110,9 +110,8 @@ public:
|
||||
regIOobject(const regIOobject&, bool registerCopy);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~regIOobject();
|
||||
//- Destructor
|
||||
virtual ~regIOobject();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -53,10 +53,9 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~FieldMapper()
|
||||
{}
|
||||
//- Destructor
|
||||
virtual ~FieldMapper()
|
||||
{}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -379,7 +379,7 @@ interfaces() const
|
||||
{
|
||||
lduInterfaceFieldPtrsList interfaces(this->size());
|
||||
|
||||
forAll (interfaces, patchi)
|
||||
forAll(interfaces, patchi)
|
||||
{
|
||||
if (isA<lduInterfaceField>(this->operator[](patchi)))
|
||||
{
|
||||
|
||||
@ -50,7 +50,7 @@ slicedBoundaryField
|
||||
|
||||
FieldField<PatchField, Type>& bf = tbf();
|
||||
|
||||
forAll (mesh.boundary(), patchi)
|
||||
forAll(mesh.boundary(), patchi)
|
||||
{
|
||||
if (preserveCouples && mesh.boundary()[patchi].coupled())
|
||||
{
|
||||
@ -119,7 +119,7 @@ slicedBoundaryField
|
||||
|
||||
FieldField<PatchField, Type>& bf = tbf();
|
||||
|
||||
forAll (mesh.boundary(), patchi)
|
||||
forAll(mesh.boundary(), patchi)
|
||||
{
|
||||
if (preserveCouples && mesh.boundary()[patchi].coupled())
|
||||
{
|
||||
|
||||
@ -158,9 +158,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~SlicedGeometricField();
|
||||
//- Destructor
|
||||
~SlicedGeometricField();
|
||||
|
||||
|
||||
// Member functions
|
||||
@ -202,9 +201,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~DimensionedInternalField();
|
||||
//- Destructor
|
||||
~DimensionedInternalField();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -49,12 +49,7 @@ inline void mapClouds(const objectRegistry& db, const mapPolyMesh& mapper)
|
||||
{
|
||||
HashTable<const cloud*> clouds(db.lookupClass<cloud>());
|
||||
|
||||
for
|
||||
(
|
||||
HashTable<const cloud*>::iterator iter = clouds.begin();
|
||||
iter != clouds.end();
|
||||
++iter
|
||||
)
|
||||
forAllIter(HashTable<const cloud*>, clouds, iter)
|
||||
{
|
||||
cloud& c = const_cast<cloud&>(*iter());
|
||||
|
||||
|
||||
@ -126,9 +126,8 @@ public:
|
||||
}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~processorPointPatchField();
|
||||
//- Destructor
|
||||
~processorPointPatchField();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -144,7 +144,7 @@ tmp<Field<Type1> > pointPatchField<Type>::patchInternalField
|
||||
tmp<Field<Type1> > tvalues(new Field<Type1>(meshPoints.size()));
|
||||
Field<Type1>& values = tvalues();
|
||||
|
||||
forAll (meshPoints, pointI)
|
||||
forAll(meshPoints, pointI)
|
||||
{
|
||||
values[pointI] = iF[meshPoints[pointI]];
|
||||
}
|
||||
@ -202,7 +202,7 @@ void pointPatchField<Type>::addToInternalField
|
||||
// Get the addressing
|
||||
const labelList& mp = patch().meshPoints();
|
||||
|
||||
forAll (mp, pointI)
|
||||
forAll(mp, pointI)
|
||||
{
|
||||
iF[mp[pointI]] += pF[pointI];
|
||||
}
|
||||
@ -292,7 +292,7 @@ void pointPatchField<Type>::setInInternalField
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
forAll (meshPoints, pointI)
|
||||
forAll(meshPoints, pointI)
|
||||
{
|
||||
iF[meshPoints[pointI]] = pF[pointI];
|
||||
}
|
||||
|
||||
@ -229,10 +229,9 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~pointPatchField<Type>()
|
||||
{}
|
||||
//- Destructor
|
||||
virtual ~pointPatchField<Type>()
|
||||
{}
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -78,9 +78,8 @@ public:
|
||||
JobInfo();
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~JobInfo();
|
||||
//- Destructor
|
||||
~JobInfo();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -750,6 +750,20 @@ Foam::argList::~argList()
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::argList::printNotes() const
|
||||
{
|
||||
// output notes directly - no automatic text wrapping
|
||||
if (!notes.empty())
|
||||
{
|
||||
Info<< nl;
|
||||
forAllConstIter(SLList<string>, notes, iter)
|
||||
{
|
||||
Info<< iter().c_str() << nl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Foam::argList::printUsage() const
|
||||
{
|
||||
Info<< "\nUsage: " << executable_ << " [OPTIONS]";
|
||||
@ -819,20 +833,7 @@ void Foam::argList::printUsage() const
|
||||
);
|
||||
|
||||
|
||||
// output notes directly - no automatic text wrapping
|
||||
if (!notes.empty())
|
||||
{
|
||||
Info<< nl;
|
||||
for
|
||||
(
|
||||
SLList<string>::const_iterator iter = notes.begin();
|
||||
iter != notes.end();
|
||||
++iter
|
||||
)
|
||||
{
|
||||
Info<< iter().c_str() << nl;
|
||||
}
|
||||
}
|
||||
printNotes();
|
||||
|
||||
Info<< nl
|
||||
<<"Using OpenFOAM-" << Foam::FOAMversion
|
||||
|
||||
@ -329,6 +329,9 @@ public:
|
||||
|
||||
// Print
|
||||
|
||||
//- Print notes (if any)
|
||||
void printNotes() const;
|
||||
|
||||
//- Print usage
|
||||
void printUsage() const;
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ void graph::readCurves(Istream& is)
|
||||
x_.setSize(xyData.size());
|
||||
scalarField y(xyData.size());
|
||||
|
||||
forAll (xyData, i)
|
||||
forAll(xyData, i)
|
||||
{
|
||||
x_[i] = xyData[i].x_;
|
||||
y[i] = xyData[i].y_;
|
||||
@ -191,18 +191,13 @@ void graph::writeTable(Ostream& os) const
|
||||
{
|
||||
forAll(x_, xi)
|
||||
{
|
||||
os << setw(10) << x_[xi];
|
||||
os << setw(10) << x_[xi];
|
||||
|
||||
for
|
||||
(
|
||||
graph::const_iterator iter = begin();
|
||||
iter != end();
|
||||
++iter
|
||||
)
|
||||
forAllConstIter(graph, *this, iter)
|
||||
{
|
||||
os << token::SPACE << setw(10) << (*iter())[xi];
|
||||
os << token::SPACE << setw(10) << (*iter())[xi];
|
||||
}
|
||||
os << endl;
|
||||
os << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -226,10 +226,9 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~writer()
|
||||
{}
|
||||
//- Destructor
|
||||
virtual ~writer()
|
||||
{}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -51,7 +51,7 @@ void Foam::gnuplotGraph::write(const graph& g, Ostream& os) const
|
||||
|
||||
bool firstField = true;
|
||||
|
||||
for (graph::const_iterator iter = g.begin(); iter != g.end(); ++iter)
|
||||
forAllConstIter(graph, g, iter)
|
||||
{
|
||||
if (!firstField)
|
||||
{
|
||||
@ -64,9 +64,9 @@ void Foam::gnuplotGraph::write(const graph& g, Ostream& os) const
|
||||
os << "; pause -1" << endl;
|
||||
|
||||
|
||||
for (graph::const_iterator iter = g.begin(); iter != g.end(); ++iter)
|
||||
forAllConstIter(graph, g, iter)
|
||||
{
|
||||
os << endl;
|
||||
os << endl;
|
||||
writeXY(g.x(), *iter(), os);
|
||||
}
|
||||
}
|
||||
|
||||
@ -67,10 +67,9 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~gnuplotGraph()
|
||||
{}
|
||||
//- Destructor
|
||||
~gnuplotGraph()
|
||||
{}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -41,12 +41,12 @@ namespace Foam
|
||||
|
||||
void Foam::jplotGraph::write(const graph& g, Ostream& os) const
|
||||
{
|
||||
os << "# JPlot file" << endl
|
||||
os << "# JPlot file" << nl
|
||||
<< "# column 1: " << g.xName() << endl;
|
||||
|
||||
label fieldI = 0;
|
||||
|
||||
for (graph::const_iterator iter = g.begin(); iter != g.end(); ++iter)
|
||||
forAllConstIter(graph, g, iter)
|
||||
{
|
||||
os << "# column " << fieldI + 2 << ": " << (*iter()).name() << endl;
|
||||
fieldI++;
|
||||
|
||||
@ -67,10 +67,9 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~jplotGraph()
|
||||
{}
|
||||
//- Destructor
|
||||
~jplotGraph()
|
||||
{}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -67,10 +67,9 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~rawGraph()
|
||||
{}
|
||||
//- Destructor
|
||||
~rawGraph()
|
||||
{}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -42,17 +42,17 @@ namespace Foam
|
||||
|
||||
void Foam::xmgrGraph::write(const graph& g, Ostream& os) const
|
||||
{
|
||||
os << "@title " << g.title() << endl
|
||||
<< "@xaxis label " << g.xName() << endl
|
||||
os << "@title " << g.title() << nl
|
||||
<< "@xaxis label " << g.xName() << nl
|
||||
<< "@yaxis label " << g.yName() << endl;
|
||||
|
||||
label fieldI = 0;
|
||||
|
||||
for (graph::const_iterator iter = g.begin(); iter != g.end(); ++iter)
|
||||
forAllConstIter(graph, g, iter)
|
||||
{
|
||||
os << "@s" << fieldI << " legend "
|
||||
<< iter()->name() << endl
|
||||
<< "@target G0.S" << fieldI << endl
|
||||
<< iter()->name() << nl
|
||||
<< "@target G0.S" << fieldI << nl
|
||||
<< "@type xy" << endl;
|
||||
|
||||
writeXY(g.x(), *iter(), os);
|
||||
|
||||
@ -68,10 +68,9 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~xmgrGraph()
|
||||
{}
|
||||
//- Destructor
|
||||
~xmgrGraph()
|
||||
{}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -73,7 +73,7 @@ void PatchToPatchInterpolation<FromPatch, ToPatch>::calcPointAddressing() const
|
||||
|
||||
bool doWeights = false;
|
||||
|
||||
forAll (pointAddressing, pointI)
|
||||
forAll(pointAddressing, pointI)
|
||||
{
|
||||
doWeights = false;
|
||||
|
||||
@ -146,7 +146,7 @@ void PatchToPatchInterpolation<FromPatch, ToPatch>::calcPointAddressing() const
|
||||
edgeList hitFaceEdges =
|
||||
fromPatchFaces[proj[pointI].hitObject()].edges();
|
||||
|
||||
forAll (hitFaceEdges, edgeI)
|
||||
forAll(hitFaceEdges, edgeI)
|
||||
{
|
||||
minEdgeLength =
|
||||
min
|
||||
@ -158,7 +158,7 @@ void PatchToPatchInterpolation<FromPatch, ToPatch>::calcPointAddressing() const
|
||||
|
||||
const labelList& curEdges = toPatchPointEdges[pointI];
|
||||
|
||||
forAll (curEdges, edgeI)
|
||||
forAll(curEdges, edgeI)
|
||||
{
|
||||
minEdgeLength =
|
||||
min
|
||||
@ -208,7 +208,7 @@ void PatchToPatchInterpolation<FromPatch, ToPatch>::calcPointAddressing() const
|
||||
|
||||
pointField hitFacePoints = hitFace.points(fromPatchPoints);
|
||||
|
||||
forAll (hitFacePoints, masterPointI)
|
||||
forAll(hitFacePoints, masterPointI)
|
||||
{
|
||||
pointWeights[pointI][masterPointI] =
|
||||
1.0/
|
||||
@ -252,7 +252,7 @@ void PatchToPatchInterpolation<FromPatch, ToPatch>::calcFaceAddressing() const
|
||||
|
||||
vectorField fromPatchFaceCentres(fromPatchFaces.size());
|
||||
|
||||
forAll (fromPatchFaceCentres, faceI)
|
||||
forAll(fromPatchFaceCentres, faceI)
|
||||
{
|
||||
fromPatchFaceCentres[faceI] =
|
||||
fromPatchFaces[faceI].centre(fromPatchPoints);
|
||||
@ -275,7 +275,7 @@ void PatchToPatchInterpolation<FromPatch, ToPatch>::calcFaceAddressing() const
|
||||
faceAddressingPtr_ = new labelList(proj.size(), -1);
|
||||
labelList& faceAddressing = *faceAddressingPtr_;
|
||||
|
||||
forAll (faceAddressing, faceI)
|
||||
forAll(faceAddressing, faceI)
|
||||
{
|
||||
if (proj[faceI].hit())
|
||||
{
|
||||
@ -327,7 +327,7 @@ void PatchToPatchInterpolation<FromPatch, ToPatch>::calcFaceAddressing() const
|
||||
|
||||
faceWeights[faceI][0] = 1.0/m;
|
||||
|
||||
forAll (neighbours, nI)
|
||||
forAll(neighbours, nI)
|
||||
{
|
||||
faceWeights[faceI][nI + 1] =
|
||||
1.0/
|
||||
|
||||
@ -71,7 +71,7 @@ PatchToPatchInterpolation<FromPatch, ToPatch>::pointInterpolate
|
||||
|
||||
const labelList& addr = pointAddr();
|
||||
|
||||
forAll (result, pointI)
|
||||
forAll(result, pointI)
|
||||
{
|
||||
const scalarField& curWeights = weights[pointI];
|
||||
|
||||
@ -80,7 +80,7 @@ PatchToPatchInterpolation<FromPatch, ToPatch>::pointInterpolate
|
||||
const labelList& hitFacePoints =
|
||||
fromPatchLocalFaces[addr[pointI]];
|
||||
|
||||
forAll (curWeights, wI)
|
||||
forAll(curWeights, wI)
|
||||
{
|
||||
result[pointI] += curWeights[wI]*pf[hitFacePoints[wI]];
|
||||
}
|
||||
@ -142,7 +142,7 @@ PatchToPatchInterpolation<FromPatch, ToPatch>::faceInterpolate
|
||||
|
||||
const labelList& addr = faceAddr();
|
||||
|
||||
forAll (result, faceI)
|
||||
forAll(result, faceI)
|
||||
{
|
||||
const scalarField& curWeights = weights[faceI];
|
||||
|
||||
|
||||
@ -163,9 +163,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~PatchToPatchInterpolation();
|
||||
//- Destructor
|
||||
~PatchToPatchInterpolation();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -99,9 +99,8 @@ public:
|
||||
PrimitivePatchInterpolation(const Patch& p);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~PrimitivePatchInterpolation();
|
||||
//- Destructor
|
||||
~PrimitivePatchInterpolation();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -116,9 +116,8 @@ public:
|
||||
inline autoPtr<Matrix<Form, Type> > clone() const;
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~Matrix();
|
||||
//- Destructor
|
||||
~Matrix();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -44,7 +44,7 @@ void Foam::lduAddressing::calcLosort() const
|
||||
|
||||
const unallocLabelList& nbr = upperAddr();
|
||||
|
||||
forAll (nbr, nbrI)
|
||||
forAll(nbr, nbrI)
|
||||
{
|
||||
nNbrOfFace[nbr[nbrI]]++;
|
||||
}
|
||||
@ -52,7 +52,7 @@ void Foam::lduAddressing::calcLosort() const
|
||||
// Create temporary neighbour addressing
|
||||
labelListList cellNbrFaces(size());
|
||||
|
||||
forAll (cellNbrFaces, cellI)
|
||||
forAll(cellNbrFaces, cellI)
|
||||
{
|
||||
cellNbrFaces[cellI].setSize(nNbrOfFace[cellI]);
|
||||
}
|
||||
@ -61,7 +61,7 @@ void Foam::lduAddressing::calcLosort() const
|
||||
nNbrOfFace = 0;
|
||||
|
||||
// Scatter the neighbour faces
|
||||
forAll (nbr, nbrI)
|
||||
forAll(nbr, nbrI)
|
||||
{
|
||||
cellNbrFaces[nbr[nbrI]][nNbrOfFace[nbr[nbrI]]] = nbrI;
|
||||
|
||||
@ -76,11 +76,11 @@ void Foam::lduAddressing::calcLosort() const
|
||||
// Set counter for losort
|
||||
label lstI = 0;
|
||||
|
||||
forAll (cellNbrFaces, cellI)
|
||||
forAll(cellNbrFaces, cellI)
|
||||
{
|
||||
const labelList& curNbr = cellNbrFaces[cellI];
|
||||
|
||||
forAll (curNbr, curNbrI)
|
||||
forAll(curNbr, curNbrI)
|
||||
{
|
||||
lst[lstI] = curNbr[curNbrI];
|
||||
lstI++;
|
||||
@ -109,7 +109,7 @@ void Foam::lduAddressing::calcOwnerStart() const
|
||||
label nOwnStart = 0;
|
||||
label i = 1;
|
||||
|
||||
forAll (own, faceI)
|
||||
forAll(own, faceI)
|
||||
{
|
||||
label curOwn = own[faceI];
|
||||
|
||||
@ -148,7 +148,7 @@ void Foam::lduAddressing::calcLosortStart() const
|
||||
label nLsrtStart = 0;
|
||||
label i = 0;
|
||||
|
||||
forAll (lsrt, faceI)
|
||||
forAll(lsrt, faceI)
|
||||
{
|
||||
// Get neighbour
|
||||
const label curNbr = nbr[lsrt[faceI]];
|
||||
|
||||
@ -158,9 +158,8 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~lduAddressing();
|
||||
//- Destructor
|
||||
virtual ~lduAddressing();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -57,9 +57,8 @@ public:
|
||||
|
||||
// Constructors
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~cyclicLduInterface();
|
||||
//- Destructor
|
||||
virtual ~cyclicLduInterface();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -75,9 +75,8 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~lduInterface();
|
||||
//- Destructor
|
||||
virtual ~lduInterface();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -76,9 +76,8 @@ public:
|
||||
processorLduInterface();
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~processorLduInterface();
|
||||
//- Destructor
|
||||
virtual ~processorLduInterface();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -63,9 +63,8 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~cyclicLduInterfaceField();
|
||||
//- Destructor
|
||||
virtual ~cyclicLduInterfaceField();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -85,9 +85,8 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~lduInterfaceField();
|
||||
//- Destructor
|
||||
virtual ~lduInterfaceField();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -63,9 +63,8 @@ public:
|
||||
{}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~processorLduInterfaceField();
|
||||
//- Destructor
|
||||
virtual ~processorLduInterfaceField();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -340,10 +340,9 @@ public:
|
||||
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~solver()
|
||||
{}
|
||||
//- Destructor
|
||||
virtual ~solver()
|
||||
{}
|
||||
|
||||
|
||||
// Member functions
|
||||
@ -492,10 +491,9 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~smoother()
|
||||
{}
|
||||
//- Destructor
|
||||
virtual ~smoother()
|
||||
{}
|
||||
|
||||
|
||||
// Member functions
|
||||
@ -607,10 +605,9 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~preconditioner()
|
||||
{}
|
||||
//- Destructor
|
||||
virtual ~preconditioner()
|
||||
{}
|
||||
|
||||
|
||||
// Member functions
|
||||
@ -677,9 +674,8 @@ public:
|
||||
lduMatrix(const lduMesh&, Istream&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~lduMatrix();
|
||||
//- Destructor
|
||||
~lduMatrix();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
@ -42,7 +42,7 @@ void Foam::lduMatrix::initMatrixInterfaces
|
||||
|| Pstream::defaultCommsType == Pstream::nonBlocking
|
||||
)
|
||||
{
|
||||
forAll (interfaces, interfaceI)
|
||||
forAll(interfaces, interfaceI)
|
||||
{
|
||||
if (interfaces.set(interfaceI))
|
||||
{
|
||||
@ -117,7 +117,7 @@ void Foam::lduMatrix::updateMatrixInterfaces
|
||||
OPstream::waitRequests();
|
||||
}
|
||||
|
||||
forAll (interfaces, interfaceI)
|
||||
forAll(interfaces, interfaceI)
|
||||
{
|
||||
if (interfaces.set(interfaceI))
|
||||
{
|
||||
@ -138,7 +138,7 @@ void Foam::lduMatrix::updateMatrixInterfaces
|
||||
const lduSchedule& patchSchedule = this->patchSchedule();
|
||||
|
||||
// Loop over all the "normal" interfaces relating to standard patches
|
||||
forAll (patchSchedule, i)
|
||||
forAll(patchSchedule, i)
|
||||
{
|
||||
label interfaceI = patchSchedule[i].patch;
|
||||
|
||||
|
||||
@ -74,10 +74,9 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~DICPreconditioner()
|
||||
{}
|
||||
//- Destructor
|
||||
virtual ~DICPreconditioner()
|
||||
{}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -74,10 +74,9 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~DILUPreconditioner()
|
||||
{}
|
||||
//- Destructor
|
||||
virtual ~DILUPreconditioner()
|
||||
{}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -87,10 +87,9 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~FDICPreconditioner()
|
||||
{}
|
||||
//- Destructor
|
||||
virtual ~FDICPreconditioner()
|
||||
{}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -79,9 +79,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~GAMGPreconditioner();
|
||||
//- Destructor
|
||||
virtual ~GAMGPreconditioner();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -84,10 +84,9 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~diagonalPreconditioner()
|
||||
{}
|
||||
//- Destructor
|
||||
virtual ~diagonalPreconditioner()
|
||||
{}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -75,10 +75,9 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~noPreconditioner()
|
||||
{}
|
||||
//- Destructor
|
||||
virtual ~noPreconditioner()
|
||||
{}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -109,10 +109,9 @@ public:
|
||||
const scalar relTol = 0.0
|
||||
);
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~BICCG()
|
||||
{}
|
||||
//- Destructor
|
||||
virtual ~BICCG()
|
||||
{}
|
||||
|
||||
};
|
||||
|
||||
|
||||
@ -88,7 +88,7 @@ void Foam::GAMGAgglomeration::agglomerateLduAddressing
|
||||
label nCoarseFaces = 0;
|
||||
|
||||
// Loop through all fine faces
|
||||
forAll (upperAddr, fineFacei)
|
||||
forAll(upperAddr, fineFacei)
|
||||
{
|
||||
label rmUpperAddr = restrictMap[upperAddr[fineFacei]];
|
||||
label rmLowerAddr = restrictMap[lowerAddr[fineFacei]];
|
||||
@ -174,7 +174,7 @@ void Foam::GAMGAgglomeration::agglomerateLduAddressing
|
||||
|
||||
label coarseFacei = 0;
|
||||
|
||||
forAll (cCellnFaces, cci)
|
||||
forAll(cCellnFaces, cci)
|
||||
{
|
||||
label* cFaces = &cCellFaces[maxNnbrs*cci];
|
||||
label ccnFaces = cCellnFaces[cci];
|
||||
@ -223,7 +223,7 @@ void Foam::GAMGAgglomeration::agglomerateLduAddressing
|
||||
labelListList coarseInterfaceAddr(fineInterfaces.size());
|
||||
|
||||
// Initialise transfer of restrict addressing on the interface
|
||||
forAll (fineInterfaces, inti)
|
||||
forAll(fineInterfaces, inti)
|
||||
{
|
||||
if (fineInterfaces.set(inti))
|
||||
{
|
||||
@ -236,7 +236,7 @@ void Foam::GAMGAgglomeration::agglomerateLduAddressing
|
||||
}
|
||||
|
||||
// Add the coarse level
|
||||
forAll (fineInterfaces, inti)
|
||||
forAll(fineInterfaces, inti)
|
||||
{
|
||||
if (fineInterfaces.set(inti))
|
||||
{
|
||||
|
||||
@ -202,7 +202,7 @@ Foam::GAMGAgglomeration::~GAMGAgglomeration()
|
||||
{
|
||||
lduInterfacePtrsList& curLevel = interfaceLevels_[leveli];
|
||||
|
||||
forAll (curLevel, i)
|
||||
forAll(curLevel, i)
|
||||
{
|
||||
if (curLevel.set(i))
|
||||
{
|
||||
|
||||
@ -180,9 +180,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~GAMGAgglomeration();
|
||||
//- Destructor
|
||||
~GAMGAgglomeration();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -48,18 +48,18 @@ Foam::tmp<Foam::labelField> Foam::pairGAMGAgglomeration::agglomerate
|
||||
{
|
||||
labelList nNbrs(nFineCells, 0);
|
||||
|
||||
forAll (upperAddr, facei)
|
||||
forAll(upperAddr, facei)
|
||||
{
|
||||
nNbrs[upperAddr[facei]]++;
|
||||
}
|
||||
|
||||
forAll (lowerAddr, facei)
|
||||
forAll(lowerAddr, facei)
|
||||
{
|
||||
nNbrs[lowerAddr[facei]]++;
|
||||
}
|
||||
|
||||
cellFaceOffsets[0] = 0;
|
||||
forAll (nNbrs, celli)
|
||||
forAll(nNbrs, celli)
|
||||
{
|
||||
cellFaceOffsets[celli+1] = cellFaceOffsets[celli] + nNbrs[celli];
|
||||
}
|
||||
@ -67,7 +67,7 @@ Foam::tmp<Foam::labelField> Foam::pairGAMGAgglomeration::agglomerate
|
||||
// reset the whole list to use as counter
|
||||
nNbrs = 0;
|
||||
|
||||
forAll (upperAddr, facei)
|
||||
forAll(upperAddr, facei)
|
||||
{
|
||||
cellFaces
|
||||
[
|
||||
@ -77,7 +77,7 @@ Foam::tmp<Foam::labelField> Foam::pairGAMGAgglomeration::agglomerate
|
||||
nNbrs[upperAddr[facei]]++;
|
||||
}
|
||||
|
||||
forAll (lowerAddr, facei)
|
||||
forAll(lowerAddr, facei)
|
||||
{
|
||||
cellFaces
|
||||
[
|
||||
@ -187,7 +187,7 @@ Foam::tmp<Foam::labelField> Foam::pairGAMGAgglomeration::agglomerate
|
||||
// (doesn't always help and is sometimes detrimental)
|
||||
nCoarseCells--;
|
||||
|
||||
forAll (coarseCellMap, celli)
|
||||
forAll(coarseCellMap, celli)
|
||||
{
|
||||
coarseCellMap[celli] = nCoarseCells - coarseCellMap[celli];
|
||||
}
|
||||
|
||||
@ -78,7 +78,7 @@ void Foam::pairGAMGAgglomeration::combineLevels(const label curLevel)
|
||||
const lduInterfacePtrsList& curInterLevel = interfaceLevels_[curLevel+1];
|
||||
lduInterfacePtrsList& prevInterLevel = interfaceLevels_[prevLevel+1];
|
||||
|
||||
forAll (prevInterLevel, inti)
|
||||
forAll(prevInterLevel, inti)
|
||||
{
|
||||
if (prevInterLevel.set(inti))
|
||||
{
|
||||
|
||||
@ -127,11 +127,11 @@ Foam::GAMGSolver::GAMGSolver
|
||||
Foam::GAMGSolver::~GAMGSolver()
|
||||
{
|
||||
// Clear the the lists of pointers to the interfaces
|
||||
forAll (interfaceLevels_, leveli)
|
||||
forAll(interfaceLevels_, leveli)
|
||||
{
|
||||
lduInterfaceFieldPtrsList& curLevel = interfaceLevels_[leveli];
|
||||
|
||||
forAll (curLevel, i)
|
||||
forAll(curLevel, i)
|
||||
{
|
||||
if (curLevel.set(i))
|
||||
{
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user