View Issue Details

IDProjectCategoryView StatusLast Update
0004092OpenFOAMBugpublic2024-06-18 08:09
ReporterBrendenEpps Assigned Tochris  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformOpenFOAMv11 for MacOSOSMacOS Version10.14.6
Product Version11 
Summary0004092: Can not specify volume size with "openfoam-macos-file-system" script
DescriptionProblem: The "openfoam-macos-file-system" script has a bug in the "-s" option, so users are not able to specify the desired size of the volume.
Steps To Reproduce* Steps to reproduce (as copied from https://openfoam.org/download/11-macos/). In MacOS Terminal:
    sudo curl -o /usr/local/bin/openfoam-macos-file-system http://dl.openfoam.org/docker/openfoam-macos-file-system
    sudo chmod 755 /usr/local/bin/openfoam-macos-file-system

    openfoam-macos-file-system -s 20 create

* Result: Script throws error message (followed by Usage instructions):
    "Specified volume size, in GB, must be greater than 2 (GB)"
Additional Information* Cause of Error: The following block is intended to execute the usage command if $VOLUME_SIZE is less than 2 GB (i.e. if the conditional is true). However, the usage command is executed if the conditional is FALSE!
    [ "$VOLUME_SIZE" -lt 2 ] || \
          usage "Specified volume size, in GB, must be greater than 2 (GB)"

* Solution: The line should be edited to
    [ "$VOLUME_SIZE" -ge 2 ] || \

  With that change, the bug is fixed and the script works as intended.
TagsNo tags attached.

Relationships

related to 0004062 closedchris openfoam10-macos needs modification to run 

Activities

chris

2024-06-18 08:09

manager   ~0013266

I have made the fix and cleaned up the openfoam-macos-file-system script generally.
https://dl.openfoam.org/docker/

We do not have a Mac, so cannot test this, so any feedback appreciated.

Issue History

Date Modified Username Field Change
2024-06-05 14:39 BrendenEpps New Issue
2024-06-11 09:42 wyldckat Assigned To => chris
2024-06-11 09:42 wyldckat Status new => assigned
2024-06-11 09:44 wyldckat Relationship added related to 0004062
2024-06-18 08:09 chris Status assigned => resolved
2024-06-18 08:09 chris Resolution open => fixed
2024-06-18 08:09 chris Note Added: 0013266