Re: AMBER: seg fault error in resp

From: FyD <fyd.u-picardie.fr>
Date: Thu, 27 Oct 2005 16:39:44 +0200

Quoting Kateryna Miroshnychenko <kateryna_mirosh.ire.kharkov.ua>:

> >> Check carefully, the number of sections in your input,...
> >
> > If you have any programming skills, you could also try compiling resp
> > with the debug flag (-g) set and find where it is coredumping and fix
> > the bug.. input may be bad, but ideally the program should tell what
> > the problem is rather than trip over itself.
>
> Thanks all for trying help me. Input was OK. I just forgot to increase
> also maxmol (besides maxq) in resp.f. The default maxmol was 30 and it was
> not enough
> in my case. After I've increased it to 100, all works fine :))
> May be it is worth to add something like following in SUBROUTINE mult_mol:
>
> c trap for too many molecules
> if( nmol .gt. maxmol) then
> write(6,'(t2,a,i3,/,t2,a,i3)')
> . ' ERROR: too many molecules', nmol,
> . ' Maximum allowed: ', maxmol
> call mexit(6, 1)
> endif
>

Here is what I changed in resp.f:

       parameter (maxq = 2000)
       parameter (maxlgr = 200)
       parameter (maxmol = 100)

regards, Francois

-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber.scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo.scripps.edu
Received on Thu Oct 27 2005 - 15:53:00 PDT
Custom Search