Commit Graph

75 Commits

Author SHA1 Message Date
54e9622e95 ENH: add Foam::domainName(), implemented as per 'hostname -d' from net-tools 2010-12-30 13:19:36 +01:00
9cef74b796 ENH: optional argument to hostName() to return full hostname
- value as reported by gethostbyname
2010-12-21 18:27:17 +01:00
85bae17943 STYLE: add formatting of NamedEnum template arguments 2010-12-17 14:36:13 +01:00
a00ec1562a Merge remote branch 'OpenCFD/master' into olesenm 2010-12-07 15:20:19 +01:00
d775a901c5 BUG: fileMonitor : non-parallel running use state directly. 2010-12-02 13:39:17 +00:00
5cccf15b18 BUG: fileMonitor : parallel syncing 2010-11-29 15:40:54 +00:00
90eb6623c5 ENH: add memInfo::valid() for detecting invalid memory info 2010-11-26 12:53:35 +01:00
6bc9b87a63 STYLE: POSIX/Alllwmake : comment 2010-11-25 16:48:46 +00:00
2ab6d349d6 STYLE: reset parameters in memInfo::update()
- avoids old values if the read from /proc/.../status somehow failed
2010-11-22 16:12:20 +01:00
9f1d94bddd ENH: memInfo class. 2010-11-18 16:45:49 +00:00
d77d215c76 ENH: memSize and memSizePeak functions, reading /proc/<pid>/status. 2010-11-17 17:20:22 +00:00
be58ad5ff4 STYLE: Fully scope methods in clockTime, cpuTime 2010-11-17 16:19:40 +01:00
b5dddd8980 ENH: parallel runTimeModifiable - master only 2010-11-16 12:41:44 +00:00
3a2822ece1 ENH: fileMonitor : warning message update 2010-10-26 16:23:05 +01:00
7e0f1e2a01 ENH: allocate fileMonitor only if wanted 2010-10-21 14:19:10 +01:00
a5ee1669b4 ENH: fileMonitor : continue if inotify_init failed 2010-10-19 09:56:29 +01:00
95219e6f76 COMP: specialization Foam::NamedEnum templates within namespace Foam
- otherwise gets flagged as an error by clang
2010-10-12 12:17:13 +02:00
514661e990 Merge remote branch 'OpenCFD/master' into olesenm 2010-09-15 15:42:24 +02:00
1a6db8cdfa ENH: fileMonitor : monitor directory, not file
Some editors (emacs) rename file at startup to the backup version. Hence
watching the original file tells one nothing.
2010-08-29 02:42:20 +01:00
dc97881539 BUG: have large buffer space 2010-08-26 17:40:35 +01:00
b89a3dc2c0 ENH: add keyType::null and wordRe::null, add match method to string classes
- provides a more uniform interface to string list operations etc

STYLE: more complete docs for keyType
2010-08-04 10:35:16 +02:00
d79237597e STYLE: Fixing code style requirements for all src. 2010-07-28 13:31:46 +01:00
c05ac8062d BUG: fileMonitor : did not handle combined messages 2010-07-15 09:25:31 +01:00
1a17581567 STYLE: consistent handling of compile/link flags for fileMonitor and setSet 2010-06-08 14:35:11 +02:00
297a8b7d6c ENH: move fileMonitor stat vs. inotify to internal class
- avoids potential mismatches between header and courtesy binaries
2010-06-07 13:51:14 +02:00
c51a2b0f63 ENH: have MUST_READ_IF_MODIFIED on IOdictionary construction 2010-06-02 09:48:07 +01:00
18925e6ee0 ENH: added fileMonitor class (uses inotify) 2010-05-28 15:20:55 +01:00
42807ddd7e STYLE: fix worst spacing violations for 'os <<' constructions
- accept some violations of the coding guidelines though
- perhaps adding a style exception would be simpler.
2010-04-13 17:45:49 +02:00
b6f3bd4c23 STYLE: follow coding guide recommendation for '//- Destructor' 2010-04-12 11:55:52 +02:00
c508b2fe17 STYLE: consistent capitalization of Private/Protected Member Functions in comments 2010-03-30 11:33:42 +02:00
d29c438657 STYLE: use url for FSF license instead of postal address, switch to GPL v3 2010-03-29 14:07:56 +02:00
65e56915fc add single-line version/build info to argList::printUsage 2009-12-04 13:02:34 +01:00
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
909e6b27e4 Apply coding style recommendations:
- space between keyword and bracket in 'for(..)', 'if(..)', 'while(..)'
2009-11-30 08:55:03 +01:00
8ff026095d added mvBak() to POSIX
- Rename to a corresponding backup file
  If the backup file already exists, attempt with "01" .. "99" suffix.

- git ignore indexed backup files too
2009-07-20 11:04:48 +02:00
359f14ae91 pass optional checkGzip through POSIX::exists() as well 2009-07-20 08:48:46 +02:00
218b2baec4 Changed SP and DP to WM_SP and WM_DP. 2009-07-03 11:46:45 +01:00
6d324c0f3e sigfpe message in header 2009-06-17 13:51:48 +01:00
06517656e8 Foam::findEtcFile - avoid false positives on directories
- use isFile() instead of exists() for file-checking
2009-05-18 10:27:32 +02:00
20c1a673e7 'rebrand' OSspecific Unix -> POSIX
- change name of environment variable from $WM_OS -> $WM_OSTYPE
  as a better description
2009-05-18 10:26:11 +02:00
fbf67192e0 Change to keep gcc-4.4.0 happy. 2009-05-05 21:24:19 +01:00
69918f23c5 consistency update
- OSspecific: chmod() -> chMod(), even although it's not used anywhere

- ListOps get subset() and inplaceSubset() templated on BoolListType

- added UList<bool>::operator[](..) const specialization.
  Returns false (actually pTraits<bool>::zero) for out-of-range elements.
  This lets us use List<bool> with lazy evaluation and no noticeable
  change in performance.

- use rcIndex() and fcIndex() wherever possible.
  Could check if branching or modulus is faster for fcIndex().

- UList and FixedList get 'const T* cdata() const' and 'T* data()' members.
  Similar to the STL front() and std::string::data() methods, they return a
  pointer to the first element without needing to write '&myList[0]', recast
  begin() or violate const-ness.
2009-02-06 20:43:09 +01:00
ffd9bb08a8 OSspecific: altered file tests
- removed the previously added fileName type(), isDir(), isFile() methods.

- added optional bool parameter to isFile() function to explicitly
  enable/disable the check for gzip files.

- fixed minor bugginess where the default usage of isFile() would result in
  false positive matches.

- be slightly more stringent and use isDir() and isFile() instead of
  exists() function when we actually know the expected type.
2009-02-06 10:25:41 +01:00
bf6915455d Merge commit 'OpenCFD/master' into olesenm 2009-02-02 16:58:00 +01:00
e5c5829244 OSspecific: isDir(), isFile() instead of dir(), file() 2009-02-02 16:50:18 +01:00
5afc0db5a8 Solaris port 2009-02-02 12:23:41 +00:00
be9051d375 Merge commit 'OpenCFD/master' into HEAD 2009-01-16 12:26:11 +01:00
bd04dc7b59 Some stuff 2009-01-15 16:45:44 +00:00
4f5f66e759 Reverted change concerning the location of the construction of the "null" strings.
Changed dotFoam function to use null-constructed strings rather that the "null" strings.
2009-01-15 16:41:08 +00:00
81184573c8 added regExp::empty() method 2009-01-14 14:45:25 +01:00