elmerfem icon indicating copy to clipboard operation
elmerfem copied to clipboard

Long filepaths for ElmerSolver input

Open nikosavola opened this issue 2 years ago • 15 comments

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 https://github.com/ElmerCSC/elmerfem/blob/b72e8ce53ffe6e369d38405fb94aaced61b7b9b2/fem/src/Types.F90#L57

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

nikosavola avatar Aug 02 '23 22:08 nikosavola

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.

ettaka avatar Aug 03 '23 07:08 ettaka

I guess this was addressed and can be closed?

raback avatar Aug 08 '24 07:08 raback