I was printing on the screen like:
Do i=1, 100
print *, 'values are ', i
Enddo
This prints rows of values like:
values are 1
values are 2
values are 3
.
.
I want the values to change in one place like
values are 1 (for the next i the value of 1 would change to 2 .... not another line)...
I would like to run an executable file from a different directory. I have used the following command
call runqq('myprog.exe','c:\program\')
this program is located in different folder. When the program starts it askes me some files to be read in the current directory but those files are...
I have got a fortran code with CVF which I want to work with my friends ... so that every change by any user will be recorded and logged ... we work on different computers in a network ... which control system can be used in windows environment .... I appreciate any suggestion!
This is an extension of my previous post - passing allocatable array between subroutines...thanks xwb for that! I have an allocatable array (assumed shape array) in a subroutine - where it's size determined in the subroutine and I want to use this array in the main program. How can it be done...
I have an array x(?). I don't know the dimension of the array before hand. While I am going through a loop I know the size.
say
do i=1, n
z = f()
if z > 0 then
x(?) = z
end if
end do
I want to start x(dimension) = 1
increase every time by 1
like
j=0
do i=1, n
z = f()...
I have pairs of simultaneous equation like:
line 1: x2 + x6 = 8.20
line 2: x5 + x2 = 15.18
line 3: x3 + x1 = 12.32
line 4: x2 + x3 = 5.08
line 5: x4 + x1 = 32.34
I am given a value of x1 = 4.6 and I am expected to get the value of other x's. Of course, it is simple, I will get the value of x3...
Can anyone help me please where I can get a fortran code or a text which describes about LU decomposition for sparse matrix in compact storage format? I appreciate any help!
I was adding the sum of the square of numbers as shown below:
do i=1, num
myresult = x(i) * x(i)
end do
However some values of x(i) when squared they become underflow/overflow how can I scale these numbers to get the correct result? Thanks in advance for any help.
How can I determine how much time a programme needs for running?
like
starttime = day/hour/min
.
.
code
.
.stoptime= da/hour/min
timedifference = stoptime - starttime
can anyone help me the effective method to evaluate the time difference?
I have a problem I will explain it in simple terms. I have a subroutine (say) which can add two numbers. The two numbers are declared as real in the subroutine. But I want to use sometimes for real number and sometimes as integer. So I declared the actual argument as integer and VF compiler...
I have a large matrix (360 * 720). Every row has only 11 columns which has a value the others are zeros. The columns whih has a value are determined during run time. How can I store this effectively in a matrix and output them?
Could anyone help me about the PCG method? I want to know from the basic of this method to writing a code in fortran for solving equations. Both code and explanations are helpful. Thanks in advance!
I want to open new files named from 1 to 100 e.g. 1.txt, 2.txt, ... I tried the following but no success...can any one help me plz..
do i=1, 100
open (i, File = '//i//.txt')
code...
close(i)
end do
I have different records having different columns how can i read them in formatted reading.
Example
1 2 3 4 (4 columns)
1 23 5 (3 columns)
2 36 58 78 52 (5 columns)
I defined the column based on the max column but the read statement reads 0 for unavilable value
Dear folks,
I have got a problem....
I watched a music video and i was interested to save it to my hard disc. But it saves only the short cut. Hence, i searched to temporary internet file. I found the same file name but not a video file, surface worksheet file. When i open the surface worksheet...
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.