Thank you for your replies.
I am doing it on Windows server, using a Silverfrost compiler.
The reason I wrote in "Fortran" thread is that maybe there exists possibility for my program to communicate with HTML form (without using any other language in between).
Thanks
Hey, thank you for you reply.
I understand that Fortran is a very old language and nobody wants to use it these days, but I've already decided to use it a year ago and I've written a program in Fortran so this is not a decision for me anymore.
The program is done. It's there. And I'd like it to...
I've got a Fortran 95 program (which basically does few calculations) and I'd like to use it online. So that, the users will input data into a HTML form, the program will run, and it will display the results.
Would it be possible to do it in the following way?
To run a little program (e.g. PHP)...
I have a simple command-line based Fortran 95 program. I would like
my clients to be able to run it straight on the website. So that it
can be executed on the server without downloading it.
I have found out that most of the hosting packages and web browsers do not allow running .exe files on...
Yes it works. And also all my code works but WITHOUT THE BIT I SHOWED ABOVE. When I put that bit, everything else appears in the text file but not that. What's wrong with it? Have I missed something?
I did open, exactly the same statements as you gave me, using:
! open file
open (10, file='Final Output.txt', status='unknown')
! write to file
and...
! close file
close(10)
Thanks for your help! I really appreciate that :)
What if I'd like to out put:
write(10,*)"-----------------------------------------------------------"
write(10,*)
write(10,*)"Flowrate:",aflowrate(1),"m3/hr, C1/C2:",ac1c2(1),"W:",adropset(1)
write(10,*)"Flowrate:",aflowrate(2),"m3/hr...
Is there anyway to output it to the text file by modifying the code?
Because I'd like to hide the code from the users. So that they will use the program and at the end there will be question: Would you like to see the output as a text file? And if they choose to do it, there will be a text file...
if (ratio < 0.2) then
WRITE(*,*) "We need mixing."
WRITE(*,*)"Please enter the data:"
WRITE(*,*)
WRITE(*,*)"Mix:"
READ(*,*)mix
WRITE(*,*)
WRITE(*,*)"Diameter:"
READ(*,*)diameter
WRITE(*,*)
WRITE(*,*)"At the flow",aflowrate(1),"m3/hr, pressure is ",ac1c2(1)
WRITE(*,*)"At the...
Excellent ! It works :) Thank you
And another problem that I have now is that:
E.g. for this calculation:
mddc = 0.3625 * ( tension / density ) ** 0.6
PRINT '(F6.3)', mddc
I'm getting: 0.001
while it should be 0.00069
and for others I'm getting 0.005, but should be 0.00471, so it rounds up...
How do I declare constants beginning with "zero" in Fortran to get the output beginning with zero ?
If I declare :
REAL, parameter :: tension = 0.025
I get the output:
2.500000E-02
Thanks in advance
I can't figure out how to make a do-loop in Fortran to do the following:
I have 2 variables. Let's say:
REAL :: level, step
level = 2429.8
step = 1159.8
and I need 10 fields printed out.
The first field will have the value:
level + step
<then the value of the one above + step>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.