- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Hi,
I receive the following error and my code does not run at all when I increase the number of calculation steps
" forrtl : severe (157) : Program Exception - access violation "
This is while it runs OK when the calculation steps are less. Does anybody know what is it referring to and how can I solve it?!
- Marcas:
- Intel® Fortran Compiler
Link copiado
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Thanks for your useful advice.
I did as you told and run it in the debug mode. It is in one of the intrinsic functions that the code stops. It is where I wanna find the location, i.e. index, of the minimum value of a 1D array of length 5000; for example "real*8 a(5000)".I use "minloc(a)" and there it stops and prompts that error I wrote before (while it works when the array length is 4000).
Do you know any solutions to it?
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
When you build the debug configuration you should turn on all diagnostics checks - both compile time and runtime. (It is also usually recommended that all of your routines have IMPLICIT NONE statement) This could give you information onpossible causes of the error : uninitialised variables, array bounds exceeded and so on. Argument mismatches (the types of the variables passed *to* a routine do not match the types of variablesexpected by that routine) will lead to a stack corruption and possible access violation also.
Les
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado

- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora