Commit Graph

1798 Commits

Author SHA1 Message Date
b8c8c685bc -latestTime fix 2009-01-12 16:39:39 +00:00
b74f109639 wildcards in selection 2009-01-12 16:39:20 +00:00
59261a9556 hash overflow 2009-01-08 18:13:52 +00:00
f4093656d9 added unsigned label uLabel 2009-01-08 18:13:43 +00:00
ef42bea66f added region 2009-01-08 18:13:04 +00:00
de70ab343c Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-08 13:40:30 +00:00
822b516852 csh syntax 2009-01-08 13:40:00 +00: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
61aadcdbf0 handling [(nil)] from sicortex 2008-12-31 11:10:50 +00:00
d611b85924 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2008-12-31 08:47:57 +00:00
cdfc52d2dd Returned the web address to original location, it looked like it had got lost and forgotten about. 2008-12-31 08:41:27 +00:00
09463aaa9f Further correction for commit bf92e86. 2008-12-30 23:02:05 +00:00
1d450fbe11 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2008-12-30 22:00:52 +00:00
22393b4262 new bc 2008-12-30 22:00:17 +00:00
bf92e869a9 Changed the IOOutputFilter constructor to accept a "name" argument. For details see the changes proposed by Vincent Tang:
http://openfoam.cfd-online.com/cgi-bin/forum/show.cgi?126/10405
2008-12-30 21:18:04 +00:00
7386e4c94d Changed "flex++" to "flex --c++" to avoid the need to create the link from "flex" to "flex++" after installing "flex". 2008-12-30 19:02:45 +00:00
1089d5a5d5 Moved the construction of the static "null" strings to stringsGlobals.C which is included in global.Cver to avoid inter-dependency problems in the construction of globals.
Patch supplied by Michael Wild, see
http://openfoam.cfd-online.com/cgi-bin/forum/show.cgi?126/10442
2008-12-29 18:54:46 +00:00
eb37259958 Changed the "unsigned int" old-style cast to a "unsigned" type conversion to avoid
warning: use of old-style cast
2008-12-29 18:51:40 +00:00