Commit Graph

1738 Commits

Author SHA1 Message Date
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
d3ab1df730 fixed silly mistakes in wmakePrintBuild 2008-12-19 19:04:09 +01:00
822966eb86 Merge branch 'olesenm' 2008-12-19 13:05:19 +00:00
368eec5a07 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2008-12-19 13:03:53 +00:00
d9b9d7f2c0 Corrections to Niklas' contribution for 1.5 to dev. 2008-12-19 13:03:45 +00:00
0c5571519f changes to build version string
- version is WM_PROJECT_VERSION prefix + SHA1 from current git head
- move double quotes from make rules to global.Cver for extra safety
2008-12-19 13:20:14 +01:00
5f7d2acb9c tweaked build version strings
- added wmakePrintBuild -check, -update, -version options
- only update .build cache when explictly requested and
  from within the wmake Cver rules
- use -check option to avoid unnecessary remake in src/Allwmake
2008-12-19 12:13:08 +01:00
cd7cff1e53 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2008-12-19 10:27:39 +00:00
6a4b83bc43 Added wmakePrintBuild for determining the build version
- the $WM_PROJECT_DIR/.build file is automatically updated.
  This file is (and must be) ignored by git.
2008-12-19 11:11:20 +01:00
79e9a90c0e reworked functionObjectList to use PtrList
- This was originally plan 'B', but it is actually probably more efficient
  than using PtrDictionary anyhow.
- straightened out the return value logic, but it wasn't being used anywhere
  anyhow.
- new 'updated_' data member avoids inadvertent execution in the read()
  method when execution is turned off.
2008-12-19 09:29:58 +01:00
707dbe066f fixup header copyrights 2008-12-18 21:00:07 +01:00
43c1bcae6d Merge commit 'OpenCFD/master' into olesenm
Conflicts:

	src/Allwmake
	src/OpenFOAM/global/global.C
	wmake/rules/General/version

Retained solution with global.Cver
2008-12-18 20:52:48 +01:00
a15d0f8ad4 output banner cosmetics
- move url to lower right: makes version information stand out better
2008-12-18 20:29:24 +01:00
b5f06a3833 use git describe for header version, but use existing wmake framework 2008-12-18 19:54:13 +01:00
ae9057c9fe build paraview with experimental PARAVIEW_INSTALL_DEVELOPMENT 2008-12-18 19:52:37 +01:00
5bda264bb6 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2008-12-18 16:58:39 +00:00
e1d7916c3b From Niklas Nordin:
New fuels are iso/n-propanol and urea.  Although urea is a bit dodgy, but that's
all of the properties Ive found so far.

I've also added a variation of temperature instead of constant temperature for
some injector-classes so Im sending you the new version of the dieselFoam
tutorial also.
2008-12-18 16:58:29 +00:00
61187dfedb updated DictionaryTest to test transfer() and remove()
- PtrDictionary and remove(const word&) does not seem to work
2008-12-18 16:54:35 +01:00
5692245bc7 added HashPtrTable forward declaration to HashTable, entry.H cosmetics 2008-12-18 11:29:26 +01:00
94a6462058 update/remove some tests from applications/test 2008-12-18 10:00:03 +01:00
a43b7a916e handle NULL pointer in regExp 2008-12-18 09:30:06 +01:00
0a1a66ecb9 git describe in header 2008-12-17 12:36:29 +00:00
239c31f30f DictionaryBase gets transfer() method 2008-12-17 12:36:55 +01:00
84f9fc5c26 LinkedLists/accessTypes get transfer() method 2008-12-17 12:31:50 +01:00
9681a66a80 DLListBase / SLListBase get transfer() method 2008-12-17 11:51:56 +01:00
d5ac9d4c36 LinkedLists cleanup 2008-12-17 11:36:04 +01:00
625c75630c Dictionary template class - added lookupPtr
- can return NULL pointer instead of FatalError for non-existent entries
2008-12-17 11:14:00 +01:00
e0c749cfe8 Merge commit 'OpenCFD/master' into olesenm 2008-12-17 08:26:10 +01:00
6a4cd5cb5d Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2008-12-16 22:30:56 +00:00
8b446b1ec1 unnecessary clear 2008-12-16 22:30:38 +00:00
a1c8a6c24c handling uniform fields 2008-12-16 22:30:13 +00:00
ebaaa0005f etc/paraview3/*rc - added minor note 2008-12-16 16:07:35 +01:00
6151df3ef1 paraview build - reworking build/install directories 2008-12-16 13:20:53 +01:00
7072a998e8 paraview build - add -abspath/-envpath options 2008-12-16 11:45:12 +01:00
49bbb29ac8 update build scripts and etc/apps/paraview3 settings for paraview-3.5 (cvs)
- The new cmake seems to be even smarter. If we try to use env variables in
  the .cmake files (eg, with And's sed fixup), they are rewritten in a
  subsequent re-make and take much longer).  Adjusting the compiler values
  themselves causes a full remake. On the positive side, disabling the rpath
  seems to mean we may not need any of this.

  In summary - yuck!
2008-12-15 22:06:54 +01:00
bf057f99c0 small change to CMakeLists.txt for cmake-2.6.2 2008-12-15 22:06:44 +01:00
aa522c93f1 buildParaView changes
- set CMAKE_INSTALL_PREFIX:PATH now
- allow separation between -config/-make/-install stages
- update for cmake 2.6
2008-12-13 17:55:07 +01:00
4c6a7ca707 cellModeller - cosmetics 2008-12-12 20:02:50 +01:00