Coder Social home page Coder Social logo

Comments (8)

maikwoehl avatar maikwoehl commented on July 18, 2024

At university we had used kernel calls of a RT patched kernel for in and out. If necessary that could be a way to write to files without the charming easy to use API of stdlib.

Just an idea on this topic.

from dpsim.

stv0g avatar stv0g commented on July 18, 2024

Hi @maikwoehl,

what do you mean by "[...] in and out."? Are you referring to std::cout / std::cin?

from dpsim.

maikwoehl avatar maikwoehl commented on July 18, 2024

Hi @stv0g,

I'm specifically referring to the Linux Filesystem Kernel API.

With this you do not need libstdc++-fs... unfortunately I cannot prove this fast. It has been some time ago that I have written linux kernel code.

from dpsim.

stv0g avatar stv0g commented on July 18, 2024

Ah okay, so you run DPsim in kernel mode?

from dpsim.

maikwoehl avatar maikwoehl commented on July 18, 2024

No, but you can interface to a kernel module like to a kernel driver and have your own filesystem API if you need that really hard for dpsim on OPAL-RT.

I mean you can install a message based driver and install the output to proc or using the Linux Kernel Filesystems API.

I haven't compiled or used dpsim yet.

from dpsim.

m-mirz avatar m-mirz commented on July 18, 2024

The filesystem library is used for the logs, load profile reader and CIM file reader.

  • logging could be disabled
  • load profiles are not necessary for all simulations and can be communicated via VILLASnode, like the results
  • the CIM reader is also not strictly necessary... the grid could be described using the C++ API

So, I think that we could disable everything related to filesystem.

from dpsim.

stv0g avatar stv0g commented on July 18, 2024

This will be fixed by #168

I have added a standalone implementation of std::filesystem via CMake FetchContent

from dpsim.

leonardocarreras avatar leonardocarreras commented on July 18, 2024

This can be closed due to:
#168 was merged

from dpsim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.