- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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
- Balises:
- Intel® Fortran Compiler
Lien copié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Joerg Kuthe
www.qtsoftware.de
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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!
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable