knutta@lise.unit.no (Knut Alfredsen) (05/01/91)
After some requests I am posting a summary of the answers I got to my question about dbx debugging. My friend who does the debugging reports that things work ok now. PRINTING ARRAYS : & a[n] / m f a - array name n - start position m - number of elements that should be printed f - format descriptor (f - real) To print a matrix I got the suggestion to include a matrix print routine and to call it from dbx when I need it. REFERENCING COMMON VARIABLES I got several small code examples where this worked well, so i think that our problem came from using common blocks in include files. We changed this in the program, and we could print the variables that we wanted to. It was also recommended to me to use the -Bstatic switch when compiling, and to reference the variable in the following fashion : print aaa.x aaa - common block name x - variable. I have not tried the two last methods. To all who answered my question, thank You again. -Knut -- ------------------------------------------------------------------------------- Knut Alfredsen | Mail : knutta@lise.unit.no Division of Hydraulic Engineering | Phone : +47 7 59 4749 Norwegian Institute of Technology | Fax : +47 7 59 1289