Commit Graph

1808 Commits

Author SHA1 Message Date
16aaf5b54e autoPtr gets "empty()" method that can be used instead of "! ...valid()" 2009-01-10 10:38:53 +01:00
5ba68da75b wmake script cosmetics 2009-01-10 08:25:31 +01:00
b85c9a7487 avoided some unneeded conversions of string::npos, minor cleanup of className
- string doesn't use any debug info, remove it
- restructured the macros to add in NoDebug macro versions to className,
  typeInfo.  Might be helpful with tackling the globals bootstrapping issue.
- HashTableName + StaticHashTableName - avoid lookup of debug switch when
  FULLDEBUG is not defined
2009-01-09 15:15:21 +01:00
f0341171ff renamed 'empty' class to 'nil', added missing empty() member to some containers 2009-01-09 13:10:10 +01:00
036a1cd504 output FOAMbuild info in argList, but only emit FOAMversion in writeBanner 2009-01-09 11:28:08 +01:00
e6bfb2687d Merge commit 'OpenCFD/master' into olesenm 2009-01-09 10:01:37 +01:00
413f3fd903 Pstream::master fixed, see
http://openfoam.cfd-online.com/cgi-bin/forum/show.cgi?126/10427
2009-01-09 08:46:26 +00:00
990a9e7f57 added HashTable::erase(const HashTable&) method 2009-01-09 09:35:53 +01:00
92c88521c4 bugfix Pstream::master used as a bool 2009-01-09 09:32:33 +01:00
0061e9ed03 added Foam::FOAMbuild to Foam::FOAMversion
- avoids problems with finding files based on FOAMversion
  (reported by Mattijs)
2009-01-09 09:11:50 +01:00
f0f7ea9539 Merge commit 'OpenCFD/master' into olesenm 2009-01-09 08:21:48 +01:00
7f8e6e6077 etc/bashrc tweak to cleanse env vars, even from a different WM_PROJECT_INST_DIR
- Problem: changing between OpenFOAM versions with different
  WM_PROJECT_INST_DIR paths would leave the old paths in the env vars.

- TODO: etc/cshrc is rougned out, but needs work on the corresponding
  if-statement
2009-01-08 22:34:54 +01:00
3c2e85bac9 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-08 20:19:11 +00:00
fcdcf55610 Added support for "pFinal". 2009-01-08 20:05:46 +00:00
e255f36114 Merge commit 'bundle/olesenm' into home 2009-01-08 20:29:17 +01:00
7ae9a0d0d9 added tiny applications/test/foamVersion/foamVersionString.C 2009-01-08 14:48:48 +01:00
1cd18ce0b5 added wmakeLnIncludeAll - can be quite useful after a wcleanLnIncludeAll 2009-01-07 21:06:08 +01:00
e5205c8676 minor docu change 2009-01-07 10:52:31 +01:00
eb2e37b296 SiCortex port 2009-01-06 21:41:20 +00:00
bbed85ab94 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-06 20:54:19 +00:00
421a14488e problem cell removal 2009-01-06 20:54:08 +00:00
8827ef2bd7 sicortex unaligned access 2009-01-06 19:40:26 +00:00
30b62fb3c1 duplicate elements in zones 2009-01-06 19:39:55 +00:00
7db79b0439 wrong application 2009-01-06 18:33:38 +00:00
5f1c919041 Header automatically changed. Should we try to avoid this? 2009-01-05 22:23:25 +00:00
efd8afdbb6 Added the new "outputControl" option to the function objects. 2009-01-05 22:22:43 +00:00
b1ca8f48e4 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-05 22:18:33 +00:00
d793344af2 Corrected mhdFoam tutorial scripts. 2009-01-05 22:18:19 +00:00
04d26c8e38 Corrected dimensions of kappa. 2009-01-05 22:17:20 +00:00
a386230785 sicortex 2009-01-05 12:38:30 +00:00
ca6f085843 missing setFields 2009-01-05 12:17:09 +00:00
c5b38a7232 update copyrights for 2009 2008-12-31 19:01:56 +01:00
0d5114c4d1 move Switch -> primitives/ and make asBool(), asWord() static
- motivation: we could probably reuse the Switch::asBool() within boolIO.C
  ... and possibly make Switch is-a bool and has-a word (or has-a enum for
  the word) for reuse with nicer output values for bool
2009-01-07 10:07:21 +01:00
cdd2266467 Merge commit 'OpenCFD/master' into olesenm
Conflicts:

	src/OpenFOAM/db/IOstreams/Pstreams/IPstream.C
	src/OpenFOAM/db/IOstreams/Pstreams/OPstream.C
2009-01-07 09:39:17 +01:00
cb65f1c78f stringListOps - findStrings() with wordReList
- we can now use a list of words/regexp for filtering/selecting
  ... the first results: cellTable/boundaryRegion
2009-01-05 23:08:20 +01:00
3c5852ebfc reworked regExp + wordRe a bit, minor change to keyType
regExp:
- added optional ignoreCase for constructor.
- the compile() methods is now exposed as set(...) method with an optional
  ignoreCase argument.  Not currently much use for the other regex compile
  flags though. The set() method can be used directly instead of the
  operator=() assignment.

keyType + wordRe:
- it's not clear that any particular characters are valid/invalid (compared
  to string or word), so just drop the valid(char) method for now

wordRe:
- a bool doesn't suffice, added enum compOption (compile-option)
- most constructors now have a compOption. In *all* cases it defaults to
  LITERAL - ie, the same behaviour for std::string and Foam::string
- added set(...) methods that do much the same as operator=(...), but the
  compOption can be specified.  In all cases, it defaults to DETECT.

 In Summary
    By default the constructors will generally preserve the argument as
    string literal and the assignment operators will use the wordRe::DETECT
    compOption to scan the string for regular expression meta characters
    and/or invalid word characters and react accordingly.

    The exceptions are when constructing/assigning from another
    Foam::wordRe (preserve the same type) or from a Foam::word (always
    literal).
2009-01-05 17:02:58 +01:00
19503c93e1 rename xfer<T> class to Xfer<T>
- The capitalization is consistent with most other template classes, but
  more importantly frees up xfer() for use as method name without needing
  special treatment to avoid ambiguities.

  It seems reasonable to have different names for transfer(...) and xfer()
  methods, since the transfer is occuring in different directions.
  The xfer() method can thus replace the recently introduced zero-parameter
  transfer() methods.
  Other name candidates (eg, yield, release, etc.) were deemed too abstract.
2009-01-05 12:30:19 +01:00
461ac4b4cc regExp - separate full match from partial match, add find()
- match() only does a full match
  - find() and search() do partial matches
    search() is similar to the name coming into C++ TR1
2009-01-05 09:37:52 +01:00
2717aa5c7d new wordRe class - a word that holds a regExp
- a possible future replacement for keyType, but the immediate use is the
    wordReList for grepping through other lists.
  - note that the argList treatment of '(' ... ')' yields quoted strings,
    which we can use for building a wordReList

minor cleanup of regExp class

  - constructor from std::string, match std::string and
    operator=(std::string&)
    rely on automatic conversion to Foam::string
  - ditch partialMatch with sub-groups, it doesn't make much sense
2009-01-04 00:33:27 +01:00
1d866d7fe8 reworked IOstreams
- Istream and Ostream now retain backslashes when reading/writing strings.
  The previous implementation simply discarded them, except when used to
  escape a double-quote or a newline. It is now vitally important to retain
  them, eg for quoting regular expression meta-characters.

  The backslash continues to be used as an escape character for double-quote
  and newline, but otherwise get passed through "as-is" without any other
  special meaning (ie, they are *NOT* C-style strings). This helps avoid
  'backslash hell'!
  For example,
     string:   "match real dots \.+, question mark \? or any char .*"
     C-style:  "match real dots \\.+, question mark \\? or any char .*"

- combined subfiles in db/IOstreams, some had more copyright info than code
- OPstreamI.H contained only private methods, moved into OPstream.C

Are these really correct?
   IOstreams/Istream.H:#   include "HashTable.C"
   token/token.H:#define NoHashTableC
2009-01-03 12:52:27 +01:00
cf488912bb added xfer<...> transfer() method to various containers
- this should provide a slightly more naturally means to using transfer
  constructors, for example
          labelList list2(list1.transfer());
      vs. labelList list2(xferMove(list1));

- returns a plain list where appropriate (eg, DynamicList, SortableList)
  for example
          labelList list2(dynList1.transfer());
      vs. labelList list2(xferMoveTo<labelList>(dynList1));
2009-01-02 15:54:51 +01:00
5e90a0ddc9 dictionary gets xfer constructor and transfer() method(s) 2009-01-02 15:50:32 +01:00
a010121427 HashTable / StaticHashTable changes
StaticHashTable:
- erase(iterator&) now actually alters the iterator and iterator++() handles
  it properly
- clear() also sets count to zero
- operator=(const StaticHashTable&) doesn't crash after a previous transfer
- operator(), operator==() and operator!=() added

HashTable:
- operator=(const HashTable&) gets tableSize if required, eg, after a
  previous transfer)

HashSet / Map
- add xfer<...> constructor for underlying HashTable
2009-01-02 13:24:30 +01:00
973b9ea0ce boundBox, octree cleanup
- added boundBox(const tmp<pointField>&) constructor for use with
    coordinate systems
  - moved some methods from treeBoundBox to boundBox and use VectorSpace ops
2009-01-01 17:03:19 +01:00
28b200bcd9 update copyrights for 2009 2008-12-31 19:01:56 +01:00
48af574040 new management for sampledSurface(s)
//- Does the surface need an update?
        virtual bool needsUpdate() const = 0;

        //- Mark the surface as needing an update.
        //  May also free up unneeded data.
        //  Return false if surface was already marked as expired.
        virtual bool expire() = 0;

        //- Update the surface as required.
        //  Do nothing (and return false) if no update was required
        virtual bool update() = 0;

    The constructors for the derived classes should generally start in a
    'expired' condition (ie, needsUpdate() == true) and rely on a subsequent
    call to the update() method to complete the initialization. Delaying the
    final construction as late as possible allows the construction of
    surfaces that may depend on intermediate calculation results (eg,
    iso-surfaces) and also avoids the unnecessary reconstruction of surfaces
    between sampling intervals.

    It is the responsibility of the caller to ensure that the surface
    update() is called before the surface is used.  The update() method
    implementation should do nothing when the surface is already up-to-date.
2008-12-31 18:53:57 +01:00
dcc82bf77b boundingBox has mag() and span() methods - use them 2008-12-31 17:58:23 +01:00
172b862c47 added command bin/finddep, added copyright headers to misc bin/ scripts 2008-12-31 16:16:20 +01:00
7f168dc93c cuttingPlane constructor with plane/mesh instead of mesh/plane 2008-12-31 15:17:18 +01:00
1389f61287 rename PrimitiveMeshedSurface -> BasicMeshedSurface 2008-12-31 14:55:00 +01:00