I agree. I worded the post incorrectly. But many of the laws we consider fundamental right now might turn out to be approximations that work correctly if some conditions are met, and fail in some special conditions. Looking at history, and how much of the universe remains to be explored, I would...
Thanks for the reply !
By something being theoretically possible I not only mean that the current understanding of physics not forbid it, but that currently understood physics proves that all the ingredients are already there, and it is only a question of 'how' to mix them together to make...
Hmm...thank you very much for your reply.
Hmm...I kind of understand what you are saying here. So maybe this process will not be reversible. So we could 'delete' matter permanently from the universe? (violating the currently held law of conservation of mass/energy). As if we turn off the...
Hi all !
Firstly, I am a computer science student, and I have very very very little idea about what I am talking about. That's why I am here.
I don't understand what Higg's boson is, but after the recent confirmation, I watched a huge number of videos on the internet to get an intuitive...
SPOJ, Codechef are good places to start with.
Practise the easy sections first. There are lots of questions.
Also, if you are looking for data structure based questions instead of puzzle type questions which these sites generally have, try geeksforgeeks.
Thank you so much for your replies !
So I have made a module, in which I have put the derived type as well as the array, and now it's working fine. Making a module it seems was a good idea to begin with as now some of my function take less arguments (a few arguments were common to many...
Hi all !
I have a derived type as:
TYPE type_atom_type_info
integer:: type_code
character(len=4)::type_cname
real(kind=dbl)::mass
end TYPE type_atom_type_info
I have an array of this type as:
TYPE(type_atom_type_info) atom_type_info(250)
I want to pass this array to a...
Thank you for your reply chiro !
Hmm...actually I asked my prof that "From what I understand, power series have infinite terms, so how many terms shall I consider?" (where should I truncate it)
He replied "Not necessarily. In many cases (like this one) it has finite terms and rest of the...
Hi all !
I am a summer trainee and am currently making (modifying: I am changing the way the program takes input) a program in Fortran, and my math is a little shaky.
What I have is an input file with 3 parameters in it for the equation (which is the equation for calculating torsional...
Well yeah, I am a little new to fortran and I saw an example on the internet to see how files have to be read as strings (line by line) and there the file was opened with access='stream' and form='formatted'. I didn't bother reading about why that was done, but I guess that came back to haunt me...
Thank you for your reply !
I posted the problem on the intel forums also, and somebody verified that for the input file, ifort version 11.0.xx gives the problem. So it definitely was a problem with the compiler only. But they said that ifort version 11.0 was quite old and updating will solve...
Yes. Actually the code above is in a file "exp4.f90".
I am simply doing:
gfortran exp4.f90
./a.out > gfortOP.txt
ifort exp4.f90
./a.out > ifortOP.txt
Then I compare the files gfortOP.txt and ifortOP.txt by diff/sdiff. So this way they are guaranteed to read the same files. (the source...
Hi all !
This is a weird problem. A simple program to read a file and display it works differently when compiled with different versions of the same compiler.
When I compile it as:
garbageij@garbageij:~/NMA$ mpif90 exp4.f90
and run it, it gives the correct output. But when I compile it as...