Igorr
Silver Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Dudus можете либо увеличить размер стека: 4.8 Increasing the Stack Size for Programs That Use Large Data Arrays Certain programs use large amounts of data. In particular, with those programs that use large allocatable arrays (dynamically allocated at run time), certain tasks must be performed to provide enough stack space for the program to run. Many kinds of variables and expressions can be allocated on the stack. If you are using array intrinsics or expressions, these can use large amounts of stack-allocated temporary storage (temporaries), even if the original variable is static or dynamically allocated. The default stack size is 1 MB. You can increase this by specifying the linker option /stack:nnnnn, where n is the number of bytes (in decimal) you want for the stack. In Developer Studio, choose the Project menu Settings item, select the Link tab, and add the option switch to the list of Project Options. This switch can also be specified on the DF command line. To change the stack size of an already-linked executable, use the EDITBIN command, /stack:nnnnn option. либо расположить массив динамически. Например: real, ALLOCATABLE :: W(:,:) ALLOCATE (W(550,550)) ... IF (ALLOCATED(W)) DEALLOCATE (W) end program | Всего записей: 2020 | Зарегистр. 01-05-2002 | Отправлено: 20:13 10-07-2008 | Исправлено: Igorr, 20:15 10-07-2008 |
|