Recent content by PetradR

  1. P

    Fortran Program to plot multiple datasets on a single graph in Fortran95

    I went back to the original code I had at the start of the post - because I deleted to much. and destroyed all the work I had done. So back to where I began. :-( Cheer
  2. P

    Fortran Program to plot multiple datasets on a single graph in Fortran95

    Greetings Sorry a little confused here, what do you mean by explicit listing? Sorry not sure what you mean here, at the beginning of the post - I posted all the information of the program. I'm running windows and using Plato32 to compile. Used fortran95 manual for the program language. I...
  3. P

    Fortran Program to plot multiple datasets on a single graph in Fortran95

    I'm trying to nut out the problem and this is the error i received. Can you suggest someone on the forum who may be able to assist with this. I do appreciate your assistance, but I'm not getting anyway with this atm. Cheers
  4. P

    Fortran Program to plot multiple datasets on a single graph in Fortran95

    Greetings The only error I am getting when i run it is this, can you explain this part Compiling and linking file: Test.f95 (40) : error 564 - Number found where an operator was expected Compilation failed.
  5. P

    Fortran Program to plot multiple datasets on a single graph in Fortran95

    I understand the physics and the astronomy, all I am doing is to trying to organise the programing to run these equations. I can get the info to run, but some reason I'm getting more information than I need. It would be great if someone has a Fortran95 background and can run a quick eye over...
  6. P

    Fortran Program to plot multiple datasets on a single graph in Fortran95

    These are the five sets of data I should have so I can plot on an x y axis. I think I have more information than I need. I would be helpful - someone could tell me what I do and don't need in the code. d_L = S*(1 + z_max) !Eq. (29.184) in units of c/H_0 d_p0 =...
  7. P

    Fortran Program to plot multiple datasets on a single graph in Fortran95

    Hi there, I should have 5 columns of numbers to then plot on an x y axis. So all five sets of data should appear on the same graph at the end of the day. I'm okay with excel and doing the plot- i just need to generate the 5 columns of info. I should have quite a few numbers in each column -...
  8. P

    Fortran Program to plot multiple datasets on a single graph in Fortran95

    Greetings there I tested it on an online compiler and it gave me 7 lines of numbers..which I only need 5. I don't know what "print statements inside loops means"? I don't know "Or do you kill it?" means I don't know "can write to the same file or to another file. I suggest making a smaller...
  9. P

    Fortran Program to plot multiple datasets on a single graph in Fortran95

    Greetings I'm pretty much flying by the seat of my pants on this..using notes and manuals to try and nut this out. I should note that programming is not my thing, but the task is to try a simple program to answer a question. Yes, it will be zero (i think). I'm unfamiliar with debuggers and...
  10. P

    What can I expect as a newcomer to this forum? Introducing myself as Petra.

    Hi my name is Petra I'm new to the forum. Cheers Petra
  11. P

    Fortran Program to plot multiple datasets on a single graph in Fortran95

    PROGRAM Test IMPLICIT NONE REAL, PARAMETER :: Omega_m0 = 0.27, Omega_rel0 = 8.24E-5, Omega_L0 = 0.73, Omega_0 = 1.02 REAL :: z_max, z, dz REAL :: I, g_z, g_zplus, S REAL :: d_p0, d_L, d_A, d_nr, d_r INTEGER :: n = 100000 OPEN(UNIT = 10) z_max = 0 DO WHILE (z_max <= 4.001) dz = z_max/n...
Back
Top