Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long filepaths for ElmerSolver input #413

Open
nikosavola opened this issue Aug 2, 2023 · 1 comment
Open

Long filepaths for ElmerSolver input #413

nikosavola opened this issue Aug 2, 2023 · 1 comment

Comments

@nikosavola
Copy link
Contributor

nikosavola commented Aug 2, 2023

I tried running ElmerSolver for a sif file with a very long filepath containing hashes and timestamps but it failed due to

ERROR:: MAIN: Unable to find input file [/tmp/swp/session_2023-08-02_13-49-14_791016_1175879/runtime_resources/working_dir_files/tmp/add7326a134a4d29add7c4ed910ea4ae/set], can not execute.
STOP 1

where the file to run would have been called setup.sif at the end. The amount of characters in the error is 128, which makes me assume this is set by MAX_NAME_LEN or MAX_STRING_LEN in

INTEGER, PARAMETER :: MAX_NAME_LEN = 128, MAX_STRING_LEN=2048

Is there a way to circumvent this problem ? (aside from just increasing the value)

@ettaka
Copy link
Contributor

ettaka commented Aug 3, 2023

Maybe one could use MAX_STRING_LEN for sif filename? Or then make another parameter for it. One can also allocate if a dynamic approach is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants