Re: what is wrong with this code?can someone walk me through this?



On Mar 26, 8:57 pm, madhu0...@xxxxxxxxx wrote:
Heres a fortran code to solve the equation of  motion of very small
particle in a low reynolds number flow. It is not working in all
compilers, I have a working version of this code, but it doesnt work
for all inputs. Can someone tell me what is wrong with this and fix it
so that it works for a stokes number of 0.1 through 2. Stokes number
is calculated in the program. You need to work backwards by playing
with the input file and see for what values of input the stokes number
is 0.1 through 2.

my particle hardly moves. I have no way of even telling if my values
are correct. What should I do? Pls help.
my input file. it contains values of t_max, alpha, Rho, Rp, Rf, Uf in
that order exactly
example working input file values are:
600,0.05,2165,3.00E-07,5.20E-06,0.003 in that order.

source code:

IMPLICIT NONE
                                REAL*8 DERIV_FX,
DERIV_FY,N,RP,RF,RHO,UF,alpha,K,R0,U
                                REAL*8
Nu,x,y,y0,THETA,DT,T0,UT0,PI,T,THETA0,Stokes
                                REAL*8
UR0,b,x1,VX,VY,R,UT_K,UR_K,THETA2,MP,R2,x_i
                                INTEGER t_max, time
[snip rest of listing]

1. Is this fixed format or free format source code? Your compiler may
truncate lines beyond 72 or 132 characters without warning.
2. Have you used an external diagnostic program to examine your code
like FTNCHEK?
3. Have you used your compiler's diagnostic options?

- e

.



Relevant Pages

  • Re: I need some ideas on how to go about creating files....
    ... creates an input file. ... the source code and recompile it everytime they want to change the ... minimum wage clerks that got rejected twice by UC-Berkeley." ... use standard shell facilities to make it work with different files, ...
    (comp.unix.programmer)
  • Re: I need some ideas on how to go about creating files....
    ... creates an input file. ... the source code and recompile it everytime they want to change the ... I'm not too sure how I would go about this using environment ... minimum wage clerks that got rejected twice by UC-Berkeley." ...
    (comp.unix.programmer)
  • Re: I need some ideas on how to go about creating files....
    ... creates an input file. ... the source code and recompile it everytime they want to change the ... I guess it's time for me to crack out "Unix Programming for ... minimum wage clerks that got rejected twice by UC-Berkeley." ...
    (comp.unix.programmer)
  • Re: Link warning and error, what do they mean?
    ... Okay, for anybody that cares... ... I don't know why the compiler didn't tell me it couldn't ... find the source code, but it couldn't, and then tried to use the input file ...
    (microsoft.public.vc.ide_general)