I must write a C++ procedure callable from Fortran
which set 2D array input argument.I have written a version in Fortran and I get correct results.I have written my c++ procedure and I get a terrible outcome: in particular If I print array values, they are correct, but subsequently run is completed with some unexpected warnings results aren't correct.I suppose there's a problem of "dialogue" between my "talking in C++" and what machine understands.
My fortran subroutine that works fine (simplified at max and in pseudocode ) is:
PLEASE HELP ME.IT COULD BE VERY USEFUL FOR MY WORK.
ANY SUGGESTION IS WELCOME.THANKS IN ADVANCE
which set 2D array input argument.I have written a version in Fortran and I get correct results.I have written my c++ procedure and I get a terrible outcome: in particular If I print array values, they are correct, but subsequently run is completed with some unexpected warnings results aren't correct.I suppose there's a problem of "dialogue" between my "talking in C++" and what machine understands.
My fortran subroutine that works fine (simplified at max and in pseudocode ) is:
Code:
SUBROUTINE UEL(AMATRX,NDOFEL)
C
DIMENSION AMATRX(NDOFEL,NDOFEL)
C
AMATRX(1,1) = 11
AMATRX(1,2) = 12
.... etc .....
C
RETURN
END
PLEASE HELP ME.IT COULD BE VERY USEFUL FOR MY WORK.
ANY SUGGESTION IS WELCOME.THANKS IN ADVANCE