View Issue Details

IDProjectCategoryView StatusLast Update
0002676OpenFOAMBugpublic2017-08-24 10:49
Reporterjoegi Assigned Towill  
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSOpenSuSEOS Version13.2
Summary0002676: foamUpdateCaseFileHeader does not work with version 5.x
DescriptionIf you use the utility foamUpdateCaseFileHeader with verion 5.x, it will give you this error message:

The version number is "".
The format must be MAJOR.MINOR (e.g. "4.1") or "dev"

Usage: foamUpdateCaseFileHeader [OPTION] <file1> ... <fileN>

  -version <ver> specifies the version to be written in the header
  -help print the usage

  Updates the header of application files and removes consecutive blank lines.
  By default, writes current OpenFOAM version in the header.
  An alternative version can be specified with the -version option.

However, the utility works fine with version 5.0 and dev.

I checked with version 4.x, and the utility works ok (even with the headers of version 5.x).

I also think the output message needs to updated to reflect the major version, i.e.,

The format must be MAJOR.MINOR (e.g. "5.o") or "dev"

instead of

The format must be MAJOR.MINOR (e.g. "4.1") or "dev"
TagsNo tags attached.



2017-08-24 10:49

manager   ~0008628

Thanks for the report. Fixed in 5.x by commit d5a54e79 and in dev by e942824b.

Issue History

Date Modified Username Field Change
2017-08-23 20:34 joegi New Issue
2017-08-24 10:49 will Assigned To => will
2017-08-24 10:49 will Status new => resolved
2017-08-24 10:49 will Resolution open => fixed
2017-08-24 10:49 will Note Added: 0008628