- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
I am trying to find a way to compile with compaq visual fortran version 6.6b so that the executable will run in a unix environment. The way I had things set up, I would compile in cvf for debugging purposes. When the code was running as I wanted it to, I would copy all the source code to a unix based cluster. The cluster has its own fortran compiler. I would compile the source code using this compiler, and then submit the executable to be run on the cluster. This worked great until recently the unix based compiler was updated. The code will still compile on the unix based compiler, but for some reason when it is run on the cluster, it outputs garbage. So, to avoid tracking down the old compiler/ figuring out why the new compiler doesn't like my code, I would like to find a way to compile with CVF so that the executable can be run on a unix machine. Any suggestions on how this can be done or where to look for more info would be greatly appreciated,
Thanks
- 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
Joerg Kuthe
www.qtsoftware.de
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Here is a wild guess: CVF uses static storage by default (I hope I am using the right terminology; I have not looked at these issues in a while).AFAIK, most unix compilers do not.
The main consequences of static storage are, as follows:
--The program initializes all variables to 0.
--Local variables in subroutines retain their values between calls
--Something similar happens with common blocks, but I do not remeber the rules.
It is generally easy to force this behavior in the unix compiler by using a compliation switch. I am afraid you will have to read the documentation.
Good luck!
- 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