PDA

View Full Version : Using Utility Routines in user defined subroutines written in C++



fred1980
2010-03-04, 12:34
Hi,

I have written a user subroutine VUMAT in ABAQUS Explicit using C++ language, my subroutine works fine. I want to call a utility routine from my c++ code, specifically XPLB_EXIT, but I don't know how to do that. If you have experience with C++ and user subroutines can you kindly help me how to do that?
here is what I did:
in header file i defined:
void XPLB_EXIT(void);
and then in source file I just simply called XPLB_EXIT, well I tried other possibilities like defining void XPLB_EXIT_(void) .... but it didn't work.

thanks in advance

Jorgen
2010-06-19, 21:19
You can call utility routines from C++. All you need to do is to use the correct calling syntax, which is OS and compiler dependent. I recommend that you carefully read the documentation for your compiler.

-Jorgen