|
|
Up |
|
|
  |
Author: rudrarudra Date: May 15, 2008 21:43
dear friends,
here is the full code that is creating the problem!!! while running
with ifort, the configuration is created as wished, but not in
gfortran....
!===========================================
! This is the main driver routine
! of the reverse monte carlo program
program rmonte
!===========================================
|
| Show full article (4.37Kb) |
|
| | 19 Comments |
|
  |
Author: Steven G. KarglSteven G. Kargl Date: May 15, 2008 21:52
> dear friends,
> here is the full code that is creating the problem!!! while running
> with ifort, the configuration is created as wished, but not in
> gfortran....
>
> seed=12345
> 10 do i=1,ntot
> x(i)=boxl*(ran(seed)-0.0)
> y(i)=boxl*(ran(seed)-0.0)
> z(i)=boxl*(ran(seed)-0.0)
> call pbc(x,y,z,boxl)
> end do
> but while running with gfortran, its never success...why?
Read the f*cking manual!!!!!!
I've already pointed you at the docs twice, and I gave you
test code.
RAN() does not do want you think.
|
| Show full article (1.00Kb) |
|
| | no comments |
|
  |
Author: Ron FordRon Ford Date: May 15, 2008 22:05
On Fri, 16 May 2008 04:52:17 +0000 (UTC), Steven G. Kargl wrote:
>> dear friends,
>> here is the full code that is creating the problem!!! while...
|
| Show full article (1.43Kb) |
| no comments |
|
  |
Author: Steven G. KarglSteven G. Kargl Date: May 15, 2008 22:10
In article <1gqipl8a0qxil$.115otr8lebpjr$.dlg@ 40tude.net>,
Ron Ford nowhere.net> writes:
> On Fri, 16 May 2008 04:52:17 +0000 (UTC), Steven G. Kargl wrote:
>
>>> dear friends,
>>> here is the full code that is creating the problem!!! while running
>>> with ifort, the configuration is created as wished, but not in
>>> gfortran....
>>>
>>
>>> seed=12345
>>
>>
>>> 10 do i=1,ntot
>>> x(i)=boxl*(ran(seed)-0.0)
>>> y(i)=boxl*(ran(seed)-0.0)
>>> z(i)=boxl*(ran(seed)-0.0)
>>> call pbc(x,y,z,boxl) ...
|
| Show full article (2.04Kb) |
| no comments |
|
  |
Author: Ron FordRon Ford Date: May 15, 2008 22:31
> In article <1gqipl8a0qxil$.115otr8lebpjr$.dlg@ 40tude.net>,
> Ron Ford nowhere.net> writes:
>> On Fri, 16 May 2008 04:52:17 +0000 (UTC), Steven G. Kargl wrote:
>>
>>>> dear friends,
>>>> here is the full code that is creating the problem!!! while running
>>>> with ifort, the configuration is created as wished, but not in
>>>> gfortran....
>>>>
>>>
>>>> seed=12345
>>>
>>>
>>>> 10 do i=1,ntot
>>>> x(i)=boxl*(ran(seed)-0.0) ...
|
| Show full article (1.37Kb) |
| no comments |
|
  |
Author: steven.bosschersteven.bosscher Date: May 16, 2008 01:22
On May 16, 7:31 am, "Ron Ford" wrote:
> "Steven G. Kargl" troutmask.apl.washington.edu> wrote in messagenews:g0j4va$8ad$1@gnus01.u.washington.edu...
>
>
>
>> In article <1gqipl8a0qxil$.115otr8lebpjr$....@ 40tude.net>,
>> Ron Ford nowhere.net> writes:
>>> On Fri, 16 May 2008 04:52:17 +0000 (UTC), Steven G. Kargl wrote:
>
>>>>> dear friends,
>>>>> here is the full code that is creating the problem!!! while running
>>>>> with ifort, the configuration is created as wished, but not in
>>>>> gfortran....
>
>>>>> seed=12345
>
>>>>> 10 do i=1,ntot ...
|
| Show full article (2.49Kb) |
| no comments |
|
  |
Author: FXFX Date: May 16, 2008 01:25
> This seems much more imformative than the entry in gfortran.pdf.
The entry Steve quoted *is* in your doc (whether HTML of PDF). The RAN
entry, which you quoted, says "see RAND for complete documentation". Now,
the RAND entry is just next to that one, and even if it weren't both HTML
and PDF docs have plenty of hyperlinks to get you from one place to
another: in the case here, clicking on *RAND* in "see RAND for complete
documentation" would have scrolled down to the RAND entry.
When I look at "colour" in my New Oxford American Dictionary, it says
"Bristish spelling of COLOR". And I go to COLOR (and they also have
hyperlinks) if I want more.
--
FX
|
| |
| no comments |
|
  |
Author: e p chandlere p chandler Date: May 16, 2008 02:05
On May 16, 12:43 am, rudra gmail.com> wrote:
> dear friends,
> here is the full code that is creating the problem!!! while running
> with ifort, the configuration is created as wished, but not in
> gfortran....
>
> !===========================================
> ! This is the main driver routine
> ! of the reverse monte carlo program
> program rmonte
> !===========================================
>
> implicit none
> integer::i,j
> integer:: seed,tr,rmcs
> integer::ntyp,nap,ntot,it1,it2,atnm
> real(selected_real_kind(8))::rmin,rmax,boxl,dr
> real(selected_real_kind(8))::rr,rdf
> real(selected_real_kind(8)),dimension(100)::x,y,z
> real(selected_real_kind(8)),dimension(100):: gr,rrl ...
|
| Show full article (6.58Kb) |
| no comments |
|
  |
Author: nospamnospam Date: May 16, 2008 08:07
e p chandler juno.com> wrote:
> 3. Using "magic" numbers like 4 or 8 as arguments to
> selected_real_kind is even less portable than the old fashioned
> real*4, real*8 notation.
That one I disagree with. Nothing wrong with such numbers as arguments
to selected_real_kind. That's the number of decimal digits you want and
is pretty much the normal use of selected_real kind. I normally put the
selected_real_kind invocation in the definition of a named constant in a
module instead of using the whole long-winded thing in each type
definition, but otherwise literal constants are exactly what I tend to
use with it.
I suspect that the particular numbers used (4 and 8) are confusing you
into thinking that they are kind values instead of arguments to
selected_real_kind. Of course, I'd posit that, considering the number of
other errors here, and that 4 is a pretty small number of decimal digits
to ask for, the OP quite likely has this same confusion and actually
meant to use the 4 and 8 as kind values, which is indeed non-portable
and non-advisable.
Most of your other comments I agree with.
|
| Show full article (1.30Kb) |
| no comments |
|
  |
|
|
  |
Author: e p chandlere p chandler Date: May 16, 2008 08:39
On May 16, 11:07 am, nos...@see.signature (Richard Maine) wrote:
> e p chandler juno.com> wrote:
>
>> 3. Using "magic" numbers like 4 or 8 as arguments to
>> selected_real_kind is even less portable than the old fashioned
>> real*4, real*8 notation.
>
> That one I disagree with. Nothing wrong with such numbers as arguments
> to selected_real_kind. That's the number of decimal digits you want and
> is pretty much the normal use of selected_real kind. I normally put the
> selected_real_kind invocation in the definition of a named constant in a
> module instead of using the whole long-winded thing in each type
> definition, but otherwise literal constants are exactly what I tend to
> use with it.
>
> I suspect that the particular numbers used (4 and 8) are confusing you
> into thinking that they are kind values instead of arguments to
> selected_real_kind. Of course, I'd posit that, considering the number of
> other errors here, and that 4 is a pretty small number of decimal digits
> to ask for, the OP quite likely has this same confusion and actually ...
|
| Show full article (1.59Kb) |
| no comments |
|
|
|
|