util file name resolve: filename too small

From NWChem

You are viewing a single post from the thread title above
Jump to: navigation, search

Click here for full thread
Clicked A Few Times
Threads 4
Posts 12
So I think I've resolved the problem -- the call to rtdb_cget that I quote above (from bead_list.F) involves an uninitialized variable 'value' (or so gfortran told me during compilation). It looks like what happens here is that rtdb_cget is never actually called at all (to avoid doing anything dangerous with an expression containing an uninitialized variable), so perm_name is never initialized and util_file_name_resolve never gets a comprehensible filename to resolve. Other fortran compilers might be able to avoid this problem (since the uninitialized value doesn't seem to actually get used for anything important) but it leads to a bug when you compile with gfortran.

To get around this, just insert the line 'value = .true.' before the call to rtdb_cget that is quoted above; then everything works fine.

--craig


Who's here now Members 0 Guests 0 Bots/Crawler 0


AWC's: 2.5.10 MediaWiki - Stand Alone Forum Extension
Forum theme style by: AWC