well i found a way around this. you have to use the "interface" structure. do something like this:
interface doubledot
function doubledot(a,b)
real, dimension(3,3) :: a, b
real, dimension(3,3,3,3) :: doubledot
end function doubledot
end interface
thanks for the help though!
hello,
i'm trying to creat a function that will take two (3x3) matrices as an input and output a (3x3x3x3) tensor. i have already created a code, but when i try and compile i get the following error: Error: The number of subscripts is incorrect.
Here is my source code:
program tensors...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.