Thanks a lot. But almost there. first, coulsave is already n "int" type variable:
int vdwsave,coulsave,read_from_mem,write_to_mem; (line 294)
So, the change from:
mknb_func.coul=coulsave;
mknb_func.vdw=vdwsave;
To:
mknb_func.coul=(int)coulsave;
mknb_func.vdw=(int)vdwsave;
Was pointless, and unfortunatelly yelded the same crash. Unfortunatelly, fortran addicted (seems that its more than time to try a few other things, tastes and sensations out...), so I don't know how to write the new declaration line.
Just in advance: if I search in the file for the coulsave, I found those two lines AND the following:
coulsave=mknb_func.coul;
vdwsave=mknb_func.vdw;
Am I wrong, or does it means that coulsave is used as both (if yes, how hell someone could compile it in first place? :P and even get extra performance!) as we fear?
Thanks a lot in advance for everything.
Jones
On 5/31/06, David Mathog <[EMAIL PROTECTED]> wrote:
> mknb_innerloop.c(362): warning #188: enumerated type mixed with
another type
> mknb_func.coul=coulsave;
> ^
I don't have the most recent source code on my machine,
but the way around this may be to use an explicit cast.
Assuming that coulsave is the enumerated type and mknob_func.coul
is an int then:
mknb_func.coul = (int) coulsave;
will probably shut the compiler up. If mknb_func.coul is
enumerated and coulsave is an int you will probably have
to change the type of coulsave to the same enumerated type
wherever it is declared. Hopefully the code doesn't use coulsave
as both an int and an enumerated type, if it does the compiler
will probably let you know :-).
Regards,
David Mathog
[EMAIL PROTECTED]
Manager, Sequence Analysis Facility, Biology Division, Caltech
_______________________________________________ gmx-users mailing list gmx-users@gromacs.org http://www.gromacs.org/mailman/listinfo/gmx-users Please don't post (un)subscribe requests to the list. Use the www interface or send it to [EMAIL PROTECTED] Can't post? Read http://www.gromacs.org/mailing_lists/users.php