Closed Wabbaaa closed 3 years ago
Hi @Wabbaaa,
Thank you a lot! You're welcome.
In case, the problem is related to the toolbox, I would refer you to Andreas @adtzlr (https://github.com/adtzlr/ttb), he is the pro on this. I just initiated the extension to LS-Dyna (https://github.com/adtzlr/ttb/issues/10), which introduced the "#define NOR4" line. Nevertheless, I'll try to help you, also because meanwhile Andreas has other priorities.
Okay, enough background information. In the LS-Dyna object version that I downloaded all Fortran extensions are already ".F", besides the "dynrfn_user.f". Maybe that is something Linux and Fortran compiler related, which Fortran compiler do you use by the way? I guess, you successfully checked steps 1-8 in "Test setup and compiler", so we know that the compiler and the object version are fine.
My best guess right now is that your compiler cannot handle compiler flags. I'm not into that at all, so I would propose the following bold workaround: When you check the previous ttb version you notice that we did not have this preprocessor flag, also used 'include ...' instead of '#include ...' and lower case file extensions. The problem with this version was that the R4 function variants were not accepted by my compiler together with LS-Dyna. So, the workaround would be similar to mine back then by simply removing all the R4 variants manually, see https://github.com/adtzlr/ttb/issues/10, if you then get the same error "Ambiguous generic interface": Just be aware that there have been some minor updates of the toolbox since the previous version (see the open and closed issues here https://github.com/adtzlr/ttb/issues). From https://github.com/adtzlr/ttb/issues/10: "By simply deleting all the module procedure *r4 in ttb_library.f all errors disappear and we can use the toolbox (of course without the r4 variants). Is this because this fortran version cannot yet distinguish between data type-"templated" functions?"
Hopefully that already helps you, in case it does not, we just continue the troubleshooting. It would at least rule out a few things.
Best regards, Johannes
Hi @jfriedlein,
Thanks a lot for your detailed reply, it's really appreciated.
The Fortran version I use is Intel Fortran 16.0.8. I don't know why, I've reinstalled and setup everything from scratch and now it seems to work fine. I don't know what to say, I remember following the same steps from your guide.
I'll try to follow your suggestions in case I incur in the same issue again, many thanks!
Kind regards, Raffaele
Hi Raffaele @Wabbaaa,
A pleasure. Good to hear that you solved the problem. It's also interesting to see that LS-Dyna compiles with Fortran 16. Typically the object versions are very picky with regard to the environment and compiler, but maybe that occurs mainly under Windows and concerning the older releases, I don't know.
Best regards, Johannes
Hello @jfriedlein ,
Thanks a lot for the repository, I am trying to make LS-Dyna work with an user-defined material without knowing much about fortran and programming in general, and this is helping me a lot!
I am trying to run your first example on Linux and I think there is an issue with the first two lines:
The object files I've downloaded contain all the files with extension ".f", not ".F", so the file to modify is named "dyn21umats.f". When I use "make" to compile, I get the following errors:
First thing I've tried is to change the extension to "dyn21umats.F". I've only changed the name of this file, not the others, is it correct?
I've also changed the makefile; the only thing I've changed is the extension of that single file from:
to:
But when I try to compile I get the following errors:
Can you help me?
Thanks in advance.