CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   subroutine (https://www.cfd-online.com/Forums/cfx/228318-subroutine.html)

ska999 June 26, 2020 14:28

Intergration Fortran file with CFX
 
USER ROUTINE
Hello everyone:

After compiling the FORTRAN routines I get the following errors on run:
Any help in understanding the errors is appreciated.

| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Unable to find library winnt-amd64/double/sam.dll on path "C:/- |
| Users/ska99/Documents/F/winnt-amd64" |
| |
| |
| |
| |
+--------------------------------------------------------------------+

+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| USER ROUTINE: User Routine 1 could not be loaded. Please check th- |
| e Library Path, Library Name and Calling Name. For FORTRAN user r- |
| outines, the Calling Name should be in lower case. |
| |
| |
| |
+--------------------------------------------------------------------+

ghorrocks June 27, 2020 07:17

We do not provide support. We only answer questions and have discussions. If you want support contact ANSYS support. Nobody is getting paid here, so we answer questions only if we feel like it.

The error message says what the problem is: "USER ROUTINE: User Routine 1 could not be loaded. Please check the Library Path, Library Name and Calling Name. For FORTRAN user routines, the Calling Name should be in lower case."

I can see upper case letters in the path of your fortran file. Also, have a look at the CFX fortran tutorials and check you can run those before you write your own fortran.

diegopena November 12, 2023 00:50

I am facing the same problem. What's the solution?

EDIT: all subroutines are in lower case.

+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Error opening C:...*.dll: N�o f- |
| oi poss�vel encontrar o procedimento especificado.
|

This DLL is created by multiples files.
I had recently run CFX HVAC Tutorial with the provided DLL and i had no problems.

ghorrocks November 12, 2023 03:07

The error message is clear - the procedure cannot be found. This could be caused by many things, so you would have to provide more details for us to help.

diegopena November 14, 2023 22:33

While conducting tests based on the HVAC Tutorial, I observed that I encounter an error if I specify a name for the library during the creation of the DLL using `cfx5mkext`, like this:

cfx5mkext -name teste *.f

Even after renaming the Library Name in the .cfx file, the issue persists.


+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Unable to find library winnt-amd64/teste.dll on path "C:/BCP/HVAC- |
| Tuto2"
+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| USER ROUTINE: Thermostat Routine could not be loaded. Please chec- |
| k the Library Path, Library Name and Calling Name. For FORTRAN us- |
| er routines, the Calling Name should be in lower case. |

EDIT 1: When I do not specify a name for the library using cfx5mkext, it automatically takes the name from the .f file. In this case, the process works well in CFX.


All times are GMT -4. The time now is 12:22.