Rate This Document
Findability
Accuracy
Completeness
Readability

"ls: cannot access processor*: No such file or directory" Displayed When a Test Case Fails to Stop

Symptom

Generally, case running takes several minutes. If a test case is stopped within one minute, open the log file to check whether the computing is running properly. If an error occurs, the log file contains the error message "mpirun has detected an attempt to run as root."

Key Process and Cause Analysis

When running the mpirun command as the root user, you need to add a parameter.

Conclusion and Solution

  1. Run the following command to open the RunFunctions file:

    vi /path/to/OPENFOAM/OpenFOAM-v1906/bin/tools/RunFunctions

  2. Press i to enter the insert mode and --allow-run-as-root to the end of the mpirun command.
  3. Press Esc, type :wq!, and press Enter to save the settings and exit.
  4. Run the following command to run the test case again:

    ./Allclean

    ./Allrun