hexagon logo

How to get started writing C user subroutine in ADAMS?

ADM703C is made up for writing subroutines in Fortran language, is there a recommended way to start writing User subroutine in C programming. Although, the installed directory contains some c-user subs, these are least useful if you want to create a function which calculates force with the input and output arguments in the subroutine. Suppose user is mediocre in C programming, how do you suggest him to become proficient in creating a C user subs.
Parents
  • Hi Goutam,

    The process of compiling C subroutine is the same as Fortran.

    The header files should be located in the same directory of the subroutine.

    There are examples of subroutines in C language in installed directory which are helpful for the users to start creating C subroutine. For example, in case of SFOSUB in Adams help a simple C subroutine is provided:

    This subroutine helps how to define the input and output arguments, and the user is supposed to know how to further write the code in C.

Reply
  • Hi Goutam,

    The process of compiling C subroutine is the same as Fortran.

    The header files should be located in the same directory of the subroutine.

    There are examples of subroutines in C language in installed directory which are helpful for the users to start creating C subroutine. For example, in case of SFOSUB in Adams help a simple C subroutine is provided:

    This subroutine helps how to define the input and output arguments, and the user is supposed to know how to further write the code in C.

Children
No Data