s-news
[Top] [All Lists]

Question about calling Fortran code with "stop"

To: s-news@lists.biostat.wustl.edu
Subject: Question about calling Fortran code with "stop"
From: Zhu Wang <zhuw@mail.smu.edu>
Date: Tue, 20 Jul 2004 14:50:53 +0000
In-reply-to: <5.1.0.14.2.20040716164220.02aef180@pop.vims.edu>
References: <5.1.0.14.2.20040716164220.02aef180@pop.vims.edu>
Dear all,

I am writing an S-Plus (version 6.1) function on Windows to call a
Fortran code. The Fortran code has something like below:

if(aaa)then
stop

The compiled S-Plus function works fine except that whenever aaa is
TRUE, The Fortran subroutine exits AND the S-Plus session is shutdown
and I have to restart S-Plus. I just do not like this.

My question is how should I change the Fortran code or S-Plus code such
that the Fortran subroutine exits but my S-Plus session is still alive.

Thanks,

-- 
Zhu Wang

Statistical Science Department
Southern Methodist University
Dallas, TX 75275-0332


<Prev in Thread] Current Thread [Next in Thread>