ikarus-project / ikarus

Ikarus is a C++-based library that uses DUNE modules to solve partial differential equations with the finite element method and more.
https://ikarus-project.github.io/
Other
5 stars 3 forks source link

log file includes header only and no output #318

Closed Nicolai-Gruenvogel closed 3 weeks ago

Nicolai-Gruenvogel commented 3 weeks ago

Describe the bug only information you get after a successful run is the start of execution and the header (first 9 lines)

To Reproduce Steps to reproduce the behavior:

  1. successful run

Expected behavior output / cout statements you printed to the screen during runtime.

Additional context maybe end of execution to see runtime duration

henrij22 commented 3 weeks ago

These files are written out with spdlog. Loggin cout statement is afaik not the intended bahaviour. If you want to log stuff to the log use somthing like that https://github.com/ikarus-project/ikarus-examples/blob/8cb1c4715003f5d7a69a30c03c0d335be0508d38/src/iks008_cooksMembrane.cpp#L160

spdlog::info("The assembly took {:>6d} milliseconds with {} EAS parameters and {:>7d} dofs",
         durationAssembly.count(), numberOfEASParameters, basis.flat().size());

See also here https://github.com/gabime/spdlog?tab=readme-ov-file#basic-usage