I checked my codes again and you are right i wrongly assigned 1000 as dimension of one of the arrays (it should be 1500).after making the change my program ran without error. thanks for the advice. it was a big help
vibhava
hi,
i have written a program that perform certain task within a loop. in the start it ask for starting and ending number to get the initial and final value for the loop and then run the loop. when i am running the program from 1 to 1000 it is giving me desired output but when i am running it...
no my final answer will be 0.593443922 (using a calculator for the above given two values). my prblem is that i have defined above two numbers as Integer (kind = i8) where i8=8 to handle such a big value. however when i am dividing them and storing the result into a real variable i am getting an...
hi,
yesterday i got the answer for how to handle a big integer. today i am having problem with real number. i have written a code which in the end gives me two big integers for example:
1329527587452 and
789000066068
i need to get the ratio of these 2 number (number 2 divided by number 1)...
hi,
i have a problem exactly similar to "eikenhorst" (latest post on this forum). but i am not an expert in FORTRAN programming so i was not able to understand the suggestion properly.In my problem i need to define 3 parameter values so that i can use them later in my program. these values...
hi,
i wish to save a 250rows x 2557columns matrix that i am getting at the end of my program to a .csv file.
e.g. I get a file xyz(250,2557) but when i am trying to write it in a .csv file using "write" statement all the columns are being written one below the other (instead of being written...
hi,
I am trying to join two strings and facing a strange problem. My codes are:
Program Read_result
Implicit None
character*6::d,filename
character*19::file
Integer::c,e
c=1
write(d,'(I1)') c
filename = 'run'//d
file='\reach000034_33.csv'
open(18,file='C:\WAMView\bnz\WAMSA\'//filename//file)...
hi,
I have been trying this for some time with no results at all. I need to write a program that opens and reads a .csv file and then copies 1 column (out of many columns) at a new file (which can be .csv or any other format accessible through excel). The problem is the first row of the .csv...
hi,
yesterday i got a suggestion about writing column data (post named" help in reading and writing column data" Following the tip i got i looked for the previous article and i thin ki found one which was good for me. but i am still having small problem:
the code i used is exactly the same as...
hi,
I have two text files: file 1 is shown below.It has 50 columns each column having different number of datapoints
10 20 30 40
10 20 30 40
10 20 30 10
10 20 10 05
10 20 05
10
10
10
10
10
File 2 currently look like this:
45
45
10
Now what I want to do is
Step 1: Start a loop from n = 1...
one last small thing that i want to do:
i want to creat different folders to save these files. the steps i want to follow are;
step 1: start a loop from 1 to 50 (n)
step 2: create a folder named run(n) example if n = 3 it should make three folders run(1),run(2),run(3)
right now i am trying the...
hi,
i need to write a code that copies uotput of my model at some other folder. I need to do this because i need to run my model for 50 time and want that all the results are (for 50 runs) are stored in a separate folder for analysis.The excel file is in .csv format. all i need is to copy it...
Thanks for your reply, I tried to debug the program and got a way to bypass the situation. however, i would like to know how to do it properly. my code is given below. While writing in unit 15 (timedelay.in file) if i define few other things like, status,action,IOstat i get the error that please...
hi,
I have two text files. Both files are store in the same folder in C drive along with my program. File 1 have 50 rows , each having 4 different values. File 2 is an already existing file with a list of parameter value for one of a model written in FORTRAN. Now what i am trying to do is:
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.