Skip to content

mapFieldsPar not execute on windows OS with source path in forward slashes

Summary

while executing mapFieldPar on windows 10 OS with openFOAM2012 gives error , if source path content forward slashes

Steps to reproduce

Create two openFAOM directories which can be mapped. while giving path such as source path with forward slashes.

Example case

Example case attached. Unzip the attachment. See two log files namely backward_shlash.log and forward_shlash.log inside mapField_Window_Forward_Slash_Issue\run_win folder. "backward_shlash.log" this log file contains log with source path given with backward slashes. "forward_shlash.log" this log file contains log with source path given with forward slashes.

What is the current bug behaviour?

mapFiledsPar fail to execute

What is the expected correct behavior?

mapFiledsPar should get execute

user need to manually change the path which is very cumbersome.

Relevant logs and/or images

See two log files namely backward_shlash.log and forward_shlash.log inside mapField_Window_Forward_Slash_Issue\run_win folder.

Environment information

  • OpenFOAM version : v2012
  • Operating system : Windows 10
  • Hardware info : -
  • Compiler : -

Possible fixes

mapField_Window_Forward_Slash_Issue.zip