خطا در اجرای دستور ALLOCATABLE در فرترن

m-s-rayaneh

عضو جدید
سلام
برنامه زیر در حالی که تو سیستم های دیگه جواب میده ولی تو فرترن من خطا میده . کمکم کنید دارم دیوونه میشم !
real :: x,y,nx,ny,dx,dy,hUntitled.png
real,ALLOCATABLE :: t:))
integer::i
N=5
h=.001
allocate ( t(N+1) )
t(1)=1
x=.12
do i=1,N
t(i+1)=t(i)+h
print*,x
end do
end
 

m-s-rayaneh

عضو جدید
همچین مطلبی هم پیدا کردم ولی چیزی سردر نمیارم ازش ! :confused:
severe (41): Insufficient virtual memoryFOR$IOS_INSVIRMEM. The Intel Fortran RTL attempted to exceed its available virtual memory while dynamically allocating space. To overcome this problem, increase the per-process data limit by using the limit (C shell) or ulimit (Bourne* and Korn and bash shell) commands before you run this program again.
To determine whether the maximum per-process data size is already allocated, check the value of the maxdsiz parameter in the sysconfigtab or system configuration file. If necessary, increase its value. Changes to do not take effect until the system has been rebooted (you do not need to rebuild the kernel if you modify sysconfigtab).
Before you try to run this program again, wait until the new system resources take effect.

http://denali.princeton.edu/intel_fc_docs/f_ug1/ug1l_rt_errors.htm
 

amir-sky

کاربر حرفه ای
کاربر ممتاز
سلام
برنامه زیر در حالی که تو سیستم های دیگه جواب میده ولی تو فرترن من خطا میده . کمکم کنید دارم دیوونه میشم !
real :: x,y,nx,ny,dx,dy,hمشاهده پیوست 205955
real,ALLOCATABLE :: t:))
integer::i
N=5
h=.001
allocate ( t(N+1) )
t(1)=1
x=.12
do i=1,N
t(i+1)=t(i)+h
print*,x
end do
end

کاشکی از برنامتون کمی توضیح میدادین.ولی با این ارور قطعا جایی رو درست ننوشتین
در قسمت کد باشگاه مهندسان کپی کنین.
 
Similar threads

Similar threads

بالا