The problem of using toughio to process input files


Here is a test input file that can run normally(r2dl1).

But when I use toughio to read and write, the output file(r2dl1_new) cannot be executed correctly.

parameters = toughio.read_input("r2dl1")
toughio.write_input("r2dl1_new", parameters)

Do I miss any details? Can someone help me?

Thank you!

3replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • I found that I replaced the START and PARAM blocks in the new file, left a blank line at the end of the SELEC block. Finally, delete the ELEME and CONNE blocks in the new file, and use the external MESH file.  The new file can be executed successfully, but the wrong results will be obtained.馃槬

  • A good practice is to place an empty line at the end of inputs for a keyword (or an empty line before the new keyword). You may try. 

      • Tianyu He
      • Tianyu_He
      • 3 wk ago
      • Reported - view

      kenny  Thank you for your advice.

Like Follow
  • 3 wk agoLast active
  • 3Replies
  • 15Views
  • 2 Following