Results 1 to 4 of 4

Thread: Fortran compiling error

  1. #1

    Fortran compiling error

    Hey,

    I'm working on a deformation model and i wrote a UMAT subroutine. but Fortran compiler gives an error on the STATEMENT and some other parts. I tried to compile a similar UMAT subroutine (which i get from Abaqus help and first part are completely similar...) and it was OK!
    And I don't know why the compiler gives error in my UMAT?
    I uploded my UMAT (Umat1) and Abaqus UMAT(Umatmss3).

    I look forward hereing from you,
    Thank you in advance,
    David
    Attached Files Attached Files

  2. Have you worked with FORTRAN before? If you have not worked with FORTRAN before, you should know that FORTRAN compilers are very picky about spacing/number of characters in a line/line continuation etc. For example, there must be, at least, 6 spaces at the beginning of each line. You can NOT use tab for placing those spaces.

  3. #3
    thanks for your reply IceBreaker !
    Yes i've worked with FORTRAN and unfortunately i know how much compilers can be picky!!
    but here i have A compiler which comiples correctly a UMAT and gives error on completely similar another UMAT!
    for example when i use an expression like DO k1=1, NDI it gives an error like Unknown parameter "=" and says you should use ".EQU.". but in the other UMAT there is just like this expression and doesn't gives any error!!
    if it has a problem with compiling for example "=" then it should be for both UMATs not just one.
    If anybody could compile two files i attached here you will see what I'm talking abt!!

    thank you,
    David

  4. #4
    Like icebreaker said your problem is incorrect spacing. Make sure the first 7 characters on each line are reserved for continuations. When you do this your subroutine compiles fine on Intel Fortran.
    Last edited by lumpwood; 2012-06-05 at 07:53.

Similar Threads

  1. error when submitted-fortran 11 to abaqus 6.10
    By marigold in forum User Material Subroutines
    Replies: 2
    Last Post: 2011-01-24, 14:29
  2. Error in compiling Fortran to Abaqus
    By koohsari in forum User Material Subroutines
    Replies: 2
    Last Post: 2010-08-24, 10:23
  3. compiling a umat without abaqus linking
    By mech5243 in forum Computer Software
    Replies: 4
    Last Post: 2009-08-08, 21:00
  4. Problem in compiling Fortran UMAT
    By khanolkar in forum Finite Element Modeling
    Replies: 2
    Last Post: 2007-04-21, 14:06
  5. Problem in compiling and linking umat
    By Polyurethane in forum Finite Element Modeling
    Replies: 3
    Last Post: 2006-09-28, 20:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •