Using the addfld module in FieldConvert results in a segmentation fault
This issue relates to a problem reported by a user on the nektar-users mailing list. Thanks to the original reporter for highlighting this issue.
FieldConvert with the addfld module using the
scale command as shown in the example in section 5.5.6 of the manual results in a "Segmentation fault" on the current master branch. Running the same command on release versions, e.g. 4.4.1 and 5.0.1, results in the command executing successfully.
An example based on one of the test problems provided for the
IncNavierStokesSolver - running on a Nektar++ 5.0.1 build on Ubuntu 18.04:
$ FieldConvert -m addfld:fromfld=ChanFlow_m8.fld:scale=1 ChanFlow_m8.xml ChanFlow_m8.fld ChanFlow_m8_2.fld Writing: "ChanFlow_m8_2.fld" (0s, XML)
Running the same example on a
master build on Ubuntu 18.04:
$ FieldConvert -m addfld:fromfld=ChanFlow_m8.fld:scale=1 ChanFlow_m8.xml ChanFlow_m8.fld ChanFlow_m8_2.fld Segmentation fault
Files used for testing are attached: