Hi, I have written some subroutines in Fortran and it uses some pre-defined data access subroutines provided by adams. However, to create the acar_solver dynamic library which would implement the subroutines in adams, I have to use Visual Studio. But I do not know how to add the libraries for the pre-defined adams data subroutines to Visual Studio. As such, i keep getting errors for these. Can anyone please guide me as to how can I get my subroutine to work in ADAMS.
Reading the help doesn't hurt: Adams Car Package -> Adams Car -> Customizing Your Product -> Introducing Adams Solver Libraries -> Creating and Using Adams Solver Libraries
In a nutshell you need to start a dos-shell where your compiler environment is active and tell A/Car which usersubs to include by setting up a listfile (sub.lst).
I prefer writing a bat-file that is automating it like this:
set IFORTVARS_BAT="C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.4.246\windows\bin\ipsxe-comp-vars.bat" intel64 vs2015
set VSVARS_BAT="C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
call %IFORTVARS_BAT%
call <toptir>/common mdi.bat acar cr-solverprivate n @sub.lst
This creates a private A/Car solver that'll be later used when you open the appropriate ADAMS version.