由买买提看人间百态

topics

全部话题 - 话题: fsub
(共0页)
s**l
发帖数: 30
1
Can it be more specified?
like an example which is tested. Thanks.
I tested the following
Fortran part:
program test
real B(1)
call fsub(B)
end
subroutine fsub(B)
real B(1)
do i=1,10
B(i)=i*1.
write(6,*) B(i)
enddo
end
C part:
#include
#include
void aaa( )
{
float * B;
B=(float *)malloc(10*sizeof(float));
fsub_(B);
}
But it says segmentation fault.....
s**s
发帖数: 242
2
in C:
....
float *B,...
B=(float *)malloc(N*sizeof(float));
fsub_(B,...)
in fortran:
subroutine fsub(B,....)
real B(1)
S*****n
发帖数: 6055
3
来自主题: Physics版 - 铁基超导体现在是超热啊
Osub(1-x)Fsub(x)
(共0页)