{"id":4909,"date":"2021-02-02T13:18:42","date_gmt":"2021-02-02T12:18:42","guid":{"rendered":"http:\/\/roboblog.fatal-fury.de\/?p=4909"},"modified":"2021-02-02T13:19:11","modified_gmt":"2021-02-02T12:19:11","slug":"fortran-gdb-infos","status":"publish","type":"post","link":"http:\/\/roboblog.fatal-fury.de\/?p=4909","title":{"rendered":"FORTRAN: GDB infos"},"content":{"rendered":"<p><em>GDB VER 9 or newer<\/em><\/p>\n<p><strong>(gdb) run<\/strong><\/p>\n<blockquote><p>0x0000555555628b76 in sourcessinks_m::sinks_ie_pot (dt=0) at ..\/..\/SweTools\/src\/unrunoff_sources_sinks_IE.F90:493<br \/>\n493               VERSENKVOL = HALTUNGEN(IM)%STRASSENFL%VERSENKVOLALT * EXP(-HALTUNGEN(IM)%STRASSENFL%DTSUM\/HALTUNGEN(IM)%STRASSENFL%KRET) + VERSENKVOL * (ONE - EXP(-HALTUNGEN(IM)%STRASSENFL%DTSUM\/HALTUNGEN(IM)%STRASSENFL%KRET))<\/p><\/blockquote>\n<p><strong>print<\/strong> geht irgendwie nicht auf typen in arrays.... scheiss fortran. aber <strong>explore<\/strong> kanns<\/p>\n<p><strong>(gdb) explore datapool::HALTUNGEN(2)<\/strong><\/p>\n<blockquote><p>\nThe value of 'datapool::HALTUNGEN(2)' is a struct\/class of type 'Type haltung' with the following fields:<\/p>\n<p>  inka_versick = 198.61264038085938 .. (Value of type 'real(kind=8)')<br \/>\n  rverteil = 0 .. (Value of type 'real(kind=4)')<br \/>\n...<br \/>\n  strassenfl = < Enter 12 to explore this field of type 'Type strassenfl' ><br \/>\n...\n<\/p><\/blockquote>\n<p><strong><br \/>\n12<br \/>\nEnter the field number of choice: The value of '(datapool::HALTUNGEN(2)).strassenfl' is a struct\/class of type 'Type strassenfl' with the following fields:<br \/>\n<\/strong><\/p>\n<blockquote><p>      hydrofl_t = < Enter 0 to explore this field of type 'Type hydrofl_t' ><br \/>\n     in_haltung = < Enter 1 to explore this field of type 'integer(kind=4), allocatable (:)' ><br \/>\n       streetin = 0 .. (Value of type 'real(kind=8)')<br \/>\n      streetout = 0 .. (Value of type 'real(kind=8)')<br \/>\n...\n<\/p><\/blockquote>\n<hr>\n<p><strong>(gdb) info variables<\/strong><\/p>\n<blockquote><p>\nAll defined variables:<\/p>\n<p>File ..\/..\/SweTools\/src\/haltungNamelistReader.F90:<br \/>\n5:      static void hart;<br \/>\n195:    static integer(kind=4) koppelpool::ende;<br \/>\n195:    static integer(kind=4) koppelpool::zufl;<\/p>\n<p>File ..\/..\/SweTools\/src\/haltungReader.F90:<br \/>\n100:    static void hart;<br \/>\n100:    static integer(kind=4) koppelpool::ende;<br \/>\n100:    static integer(kind=4) koppelpool::zufl;<br \/>\n...<\/p><\/blockquote>\n<p><strong>(gdb) info variables haltungen<\/strong><\/p>\n<blockquote><p>\nAll variables matching regular expression \"haltungen\":<br \/>\n0x000055556effc0e0  __datapool_MOD_haltungen\n<\/p><\/blockquote>\n<p><strong>(gdb) info modules<\/strong><\/p>\n<blockquote><p>\nAll defined modules:<\/p>\n<p>File ..\/..\/SweTools\/src\/haltungNamelistReader.F90:<br \/>\n1:      haltungnamelistreader_m<br \/>\nFile ..\/..\/SweTools\/src\/unrunoff_datapool.F90:<br \/>\n4:      datapool<br \/>\nFile unrunoff_koppelpool.FOR:<br \/>\n1:      koppelpool\n<\/p><\/blockquote>\n<p><strong>(gdb) info module variables<\/strong><\/p>\n<blockquote><p>\nAll variables in all modules:<br \/>\nModule \"koppelpool\":<\/p>\n<p>File ..\/..\/SweTools\/src\/haltungNamelistReader.F90:<br \/>\n195:    static integer(kind=4) koppelpool::ende;<br \/>\n195:    static integer(kind=4) koppelpool::zufl;<br \/>\nFile unrunoff_koppelpool.FOR:<br \/>\n17:     integer(kind=4), allocatable koppelpool::hname2idx(:);<br \/>\n18:     integer(kind=4), allocatable koppelpool::idx2hname(:);\n<\/p><\/blockquote>\n<p>All variables matching regular expression \"haltungen\" in all modules:<br \/>\n<strong>(gdb) info module variables haltungen<\/strong><\/p>\n<blockquote><p>\nModule \"datapool\":<\/p>\n<p>File ..\/..\/SweTools\/src\/unrunoff_datapool.F90:<br \/>\n841:    Type haltung, allocatable datapool::haltungen(:);\n<\/p><\/blockquote>\n<p><strong>(gdb) info module functions<\/strong><\/p>\n<blockquote><p>\nAll functions in all modules:<\/p>\n<p>Module \"haltungnamelistreader_m\":<br \/>\nFile ..\/..\/SweTools\/src\/haltungNamelistReader.F90:<br \/>\n12:     logical(kind=4) haltungnamelistreader_m::checkhname(integer(kind=4));<br \/>\n555:    void haltungnamelistreader_m::readauslaessenamelist(void);<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>GDB VER 9 or newer (gdb) run 0x0000555555628b76 in sourcessinks_m::sinks_ie_pot (dt=0) at ..\/..\/SweTools\/src\/unrunoff_sources_sinks_IE.F90:493 493 VERSENKVOL = HALTUNGEN(IM)%STRASSENFL%VERSENKVOLALT * EXP(-HALTUNGEN(IM)%STRASSENFL%DTSUM\/HALTUNGEN(IM)%STRASSENFL%KRET) + VERSENKVOL * (ONE - EXP(-HALTUNGEN(IM)%STRASSENFL%DTSUM\/HALTUNGEN(IM)%STRASSENFL%KRET)) print geht irgendwie nicht auf typen in arrays.... scheiss fortran. aber explore kanns (gdb) explore datapool::HALTUNGEN(2) The value of 'datapool::HALTUNGEN(2)' is a struct\/class of type 'Type haltung' with the following [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[30],"class_list":["post-4909","post","type-post","status-publish","format-standard","hentry","category-allgemein","tag-fortran"],"_links":{"self":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/4909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4909"}],"version-history":[{"count":7,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/4909\/revisions"}],"predecessor-version":[{"id":4916,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/4909\/revisions\/4916"}],"wp:attachment":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4909"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}