Open nikosavola opened 1 year ago
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.
I guess this was addressed and can be closed?
Is this relevant to the error when user uses very long path names?
[16:14:44] STOP 1
[16:14:44] ERROR:: MAIN: Unable to find input file [C:\Users\johnk\TrafoloProjects\2024\August20_verylongpathverylongpathverylongpathverylongpathverylongpathverylongpathverylongpat], can not execute.
C:\Users\johnk\TrafoloProjects\2024\August20_verylongpathverylongpathverylongpathverylongpathverylongpathverylongpathverylongpathverylongpathverylongpathverylongpathverylongpathverylongpathverylongpathverylongpathverylongpathverylongpathverylongpa>**elmersolver case1.sif**
ELMER SOLVER (v 9.0) STARTED AT: 2024/08/20 16:16:27
ParCommInit: Initialize #PEs: 1
MAIN:
MAIN: =============================================================
MAIN: ElmerSolver finite element software, Welcome!
MAIN: This program is free software licensed under (L)GPL
MAIN: Copyright 1st April 1995 - , CSC - IT Center for Science Ltd.
MAIN: Webpage http://www.csc.fi/elmer, Email elmeradm@csc.fi
MAIN: Version: 9.0 (Rev: Release, Compiled: 2024-08-06)
MAIN: Running one task without MPI parallelization.
MAIN: Running with just one thread per task.
MAIN: Lua interpreter linked in.
MAIN: External optimization routines linked in.
MAIN: =============================================================
OpenIncludeFile: Trying to include file: mesh/mesh.names
ERROR:: OpenIncludeFile: Cannot open include file: mesh/mesh.names
STOP 1
I tried running ElmerSolver for a sif file with a very long filepath containing hashes and timestamps but it failed due to
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 byMAX_NAME_LEN
orMAX_STRING_LEN
in https://github.com/ElmerCSC/elmerfem/blob/b72e8ce53ffe6e369d38405fb94aaced61b7b9b2/fem/src/Types.F90#L57Is there a way to circumvent this problem ? (aside from just increasing the value)