Dear all,
Thank you for your previous responses.
I wrote a perl script which clears comments (text following '#' in any line) and empty lines from a fortran input file.
Some of my inputs are very lengthy so I write comments followed by '#'. Before using the input as such, I use the script to...
Dear all,
I have a grid based data which is a 3-D array
data(N1,N2,N3)
where
N1 = (x_max - x_min + step_x) / step_x
N2 = (y_max - y_min + step_y) / step_y
N3 = (z_max - z_min + step_z) / step_z
x_min is the minimum value for the x-coordinate
x_max is the maximum value for the x-coordinate...
Dear all,
In a code which I have been trying to generalize,
I have an array of integers for ex.,
A = [1, 2, 3]
then I have multiple do loops as
do i1 = 1, A(1)
do i2 = 1, A(2)
do i3 = 1, A(3)
...
...
enddo
enddo
enddo
I want to generalize this code so that...
Hi,
I am looking for a way to use the c++ ASSERT function in a fortran code like for ex.,
allocate (a(10,10), stat=memstat)
ASSERT(memstat==0)
I am looking for a way to define the 'ASSERT' function in a header file and include some error msg with line numbers etc. and use it. Can any body...
Hi all,
I am trying to use the DISLIN plotting interface with gfortran in ubuntu. I managed to install DISLIN, but i always get error messages when i try to link the .o file. I followed an example from the site
http://de.wikibooks.org/wiki/Fortran:_DISLIN
code: hello.f90
-----------------...
Hello everyone,
Thanx for the previous answers. Spl thanx to xwb.
I need help in coding matrix direct sum. I have 'n' matrices of varying size. I want to read them as a single matrix as the direct sum of all the 'n' matrices.
I have 'n' matrices P(n) and the sizes of the matrices Size(n). I...
Hello everyone,
I am writing some programs in GFortran for educational purposes. For some programs, the input files have a lot of data and I like to mark them with comments using special symbols for ex., "#"
Can any one suggest me a way to make the program ignore the comment line which is...
Hi everyone,
I am new to this field and my question may be stupid. I see in text books [e.g. Fortran 95/2003 for Scientists and Engineers, Stephen J. Chapman, P. No. 23] on Fortran that the Fortran 95 character set consists of 86 symbols but when I count them from the table given in the books I...
Hi everyone,
I am new to this field and my question may be stupid. I see in text books [e.g. Fortran 95/2003 for Scientists and Engineers, Stephen J. Chapman, P. No. 23] on Fortran that the Fortran 95 character set consists of 86 symbols but when I count them from the table given in the books I...
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.