Commit Graph

4342 Commits

Author SHA1 Message Date
Mark Olesen
b83e69818b update some old dictionary headers - even found mention of Nabla! 2009-12-04 12:39:14 +01:00
Mark Olesen
975d56086c promote org-mode conversion utilities from bin/tools -> bin/ 2009-12-04 10:49:04 +01:00
Mark Olesen
0e33bf0bba add some usage information to a few utilities 2009-12-04 10:20:15 +01:00
Mark Olesen
ebf94bfc74 cleanup text wrapping code in argList 2009-12-04 10:09:32 +01:00
Mark Olesen
6e3ed58ae5 Merge commit 'OpenCFD/master' into olesenm 2009-12-03 16:40:37 +01:00
henry
3e2425b72b Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-12-02 22:42:27 +00:00
henry
c8f03c3bef Corrected and simplified solver selection for implicit MULES. 2009-12-02 22:42:10 +00:00
mattijs
1665a86206 more Icc11.1 changes 2009-12-02 18:32:03 +00:00
mattijs
23e5930d83 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-12-02 16:44:12 +00:00
mattijs
4eb40f90ee link all libraries 2009-12-02 16:41:28 +00:00
henry
f686c8d531 Remove spurious warnings from the Icc compiler concerning casting NULL. 2009-12-02 16:39:12 +00:00
henry
2db271b969 Allow copy construction because crappy compilers need them. 2009-12-02 16:38:38 +00:00
mattijs
e31f1c3aeb changed comment 2009-12-02 16:38:34 +00:00
mattijs
5ee1f98e2c linear interpolation always 2009-12-02 16:38:19 +00:00
mattijs
a0a05c1b77 allow region interfaces on processor patches 2009-12-02 16:37:59 +00:00
henry
192c0e56a1 Cosmetic changes. 2009-12-02 16:37:44 +00:00
Mark Olesen
063d8edea1 PackedBoolList specializaton for operator=
- now that I re-examined the code, the note in commit 51fd6327a6
  can be mostly ignored

  PackedList isMaster(nPoints, 1u);
  is not really inefficient at all, since the '1u' is packed into
  32/64-bits before the subsequent assignment and doesn't involve
  shifts/masking for each index

  The same misinformation applies to the PackedList(size, 0u) form.
  It isn't much slower at all.

  Nonetheless, add bool specialization so that it is a simple assign.
2009-12-03 16:33:58 +01:00
Mark Olesen
587401643c add text wrapping to the argList::printUsage output 2009-12-03 16:16:56 +01:00
Mark Olesen
67b79d9206 commit existing sizeof test 2009-12-03 14:40:12 +01:00
Mark Olesen
c091d856ae pedantic changes: 'forAll (' -> 'forAll(' in applications/
- to match coding guidelines
2009-12-03 14:12:08 +01:00
Mark Olesen
58b7e64185 Use argList::addOption, argList::addBoolOption (almost) everywhere
- ensure that the standard options (eg, from timeSelector) also have
  some usage information
2009-12-03 13:32:12 +01:00
Mark Olesen
ca7acea5f4 argList fixes/enhancements
- bugfix: noParallel() didn't remove 'parallel' from validParOptions
  allowing it to sneak through to the Pstream layer.
  noParallel() now clears the entire validParOptions as well

- new convenience methods
  * addOption()
  * removeOption()
  * addBoolOption() - as per addOption(), but for bool options (no param)

- printUsage() output format
  * options sorted alphabetically
  * options listed on separate lines for better readability

- new optionUsage static member for short usage information about
  an option
  * corresponding addUsage() method or provide usage information
    in addOption() / addBoolOption()
2009-12-03 09:32:30 +01:00
henry
bd8ff13669 Cosmetic changes. 2009-12-02 16:37:44 +00:00
Mark Olesen
51fd6327a6 use PackedBoolList typedef instead of PackedList<1>
Note:

PackedList constructor initializes to zero, faster not to do it
ourselves.
ie,
    PackedList foo(nPoints);
vs.
    PackedList foo(nPoints, 0);

saves an extra nPoints operations with shifts/masks etc.

If speed is important, change this type of code

    PackedList isMaster(nPoints, 1u);
    for (loop)
    {
        if (condition)
        {
            isMaster.set(i, 0u);   // unset bit
        }
    }
    return isMaster;

into this:

    PackedList notMaster(nPoints);
    for (loop)
    {
        if (!condition)
        {
            notMaster.set(i, 1u);
        }
    }
    notMaster.flip();
    return notMaster;

or this:

    PackedList isMaster(nPoints);
    isMaster.flip();

    for (loop)
    {
        if (condition)
        {
            isMaster.set(i, 0u);
        }
    }
    return isMaster;
2009-12-02 17:04:31 +01:00
Mark Olesen
99b293ffb3 cellMatcher - can use ListOps for identity instead of its own method 2009-12-02 16:43:42 +01:00
Mark Olesen
00985638d8 remove fvCFD.H usage from remaining library source
- exception calcType.H since it'll most likely be used for building
  applications anyhow

- use quailified names in more of the lagrangian code

- killed some tab indents in various places.
2009-12-02 15:34:52 +01:00
Mark Olesen
2f8c7782f4 removed dynamicFvMesh/dynamicRefineFvMesh/dynamicRefineFvMesh.C.save
- was not touched for a very long time, seems to be left over from
  the pre-git era
2009-12-02 14:02:07 +01:00
Mark Olesen
c3457b5152 argList - specializations for optionRead<string> etc.
- new optionLookupOrDefault and additional form of optionReadIfPresent
  with a default value
2009-12-02 13:45:11 +01:00
Mark Olesen
6b9534c9ce foamCopySettings - skip sampled directories and Ensight output directories 2009-12-02 10:06:32 +01:00
Mark Olesen
10798d696f upgrade to openmpi-1.3.4 2009-12-02 09:29:25 +01:00
Mark Olesen
8b36e8cdc9 Merge commit 'OpenCFD/master' into olesenm 2009-12-01 18:55:31 +01:00
Mark Olesen
5b628ebb31 HashSet - use AnyType, AnyHash templates as per HashTable
- this probably should have been in commit c7c9a6e0 (2009-11-04)
  but got overseen in the HashTbl -> HashTable switch
2009-12-01 18:53:15 +01:00
Mark Olesen
745d8e47d1 probes - use new HashSet::insert() method 2009-12-01 18:32:30 +01:00
Mark Olesen
a4f4a904f4 HashSet enhancement
- allow insert() and set() from a UList of Key
  This complements the existing erase(const UList<Key>&) method
2009-12-01 18:26:18 +01:00
Mark Olesen
d0b8aa40f0 trim trailing space in src/sampling 2009-12-01 17:56:35 +01:00
Mark Olesen
2667382644 probes - handle fields as wordReList
- adjust code to more closely resemble sampledSets / sampledSurfaces
2009-12-01 17:53:18 +01:00
mattijs
47eb0c5cd2 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev
Conflicts:
	applications/utilities/postProcessing/dataConversion/foamToTecplot360/Allwmake
2009-12-01 16:47:45 +00:00
mattijs
2c240854b8 incorrect comment 2009-12-01 16:44:36 +00:00
mattijs
49a2c73b2d tecplot360 converter 2009-12-01 16:43:47 +00:00
Mark Olesen
b752ce5272 sampledSets - handle fields as wordReList
- adjust code to more closely resemble sampledSurfaces
2009-12-01 16:11:18 +01:00
Mark Olesen
abc8d96198 sampledSurfaces - handle fields as wordReList
- this allows something like this:
      fields( T U "Ua.*" );
  to select normal fields and all the adjoint velocity fields
2009-12-01 14:42:46 +01:00
Mark Olesen
7889df78a9 fixup #remove functionEntry and revert 09b3c166de
- forgot to use readList in removeEntry, which caused the test failure.

- remaining problem:

it doesn't work as might be expected
This is the problem:

dict
{
   foo xxx;
   bar yyy;
}

dict
{
   baz zzz;
   #remove foo
}

This only removes 'foo' from the current scope (the second dict), since
it occurs before the dictionary merge does.

To remove from the final, merged dictionary, we'd need a new
deleteEntry type that would do the right thing on the merge before
self-destructing (ie, removing itself too).
2009-12-01 13:50:51 +01:00
Mark Olesen
28345f7e97 fixup #remove functionEntry and revert e15e32fdb7d515b
- forgot to use readList in removeEntry, which caused the test failure.

- remaining problem:

it doesn't work as might be expected
This is the problem:

dict
{
   foo xxx;
   bar yyy;
}

dict
{
   baz zzz;
   #remove foo
}

This only removes 'foo' from the current scope (the second dict), since
it occurs before the dictionary merge does.

To remove from the final, merged dictionary, we'd need a new
deleteEntry type that would do the right thing on the merge before
self-destructing (ie, removing itself too).
2009-12-01 13:50:51 +01:00
henry
1b7460bcae Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-12-01 12:05:24 +00:00
henry
5057fad1af Corrected the building of the sub-dictionary names used for debug messages. 2009-12-01 12:05:20 +00:00
henry
80a27fb9da Removed the "#remove" statements which do not appear to work. 2009-12-01 12:04:28 +00:00
henry
09b3c166de Removed the "#remove" statements which do not appear to work. 2009-12-01 12:04:28 +00:00
Mark Olesen
08988734b3 argList.H - split off templates into separate file 2009-12-01 12:48:21 +01:00
Mark Olesen
d80ce7fc33 objectRegistry - gets sortedNames() methods
- reduce duplicate code by using some HashTable methods directly
2009-12-01 11:54:06 +01:00
Mark Olesen
a0b3d14523 IOobjectList - gets sortedNames() method
- could also be the default

- reduce duplicate code by using some HashTable methods directly
2009-12-01 11:08:56 +01:00