Git Product home page Git Product logo

topopt_in_petsc_wrapped_in_python's People

Contributors

basnijholt avatar thsmit avatar whymustihaveaname avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

topopt_in_petsc_wrapped_in_python's Issues

Issue Running TopOpt Wrapper on macOS - Questions and Error

Hello,

I'm having trouble running the TopOpt wrapper provided in this repository on my Mac. Following the installation instructions, I was able to generate the dynamic library file. While the documentation refers to it as 'topoptlib.so', on macOS, it generated a file named 'topoptlib.dylib' instead.

I have some questions regarding running the 'beam.py' example:

  • When you use the statement import topoptlib in Python, does this directly import 'topoptlib.dylib'?
  • Alternatively, was there supposed to be wrapper code generated, such as 'topoptlib.py', which might not have been created due to an error?
  • Upon executing python3 beam.py, I encountered the following error. What could be the reason behind this?
    Traceback (most recent call last): File "/Users/taniguchitomohiro/Documents/TO/petsc-3.14.1/TopOpt_in_PETSc_wrapped_in_Python/beam.py", line 133, in <module> main() File "/Users/taniguchitomohiro/Documents/TO/petsc-3.14.1/TopOpt_in_PETSc_wrapped_in_Python/beam.py", line 19, in main data = topoptlib.Data() AttributeError: module 'topoptlib' has no attribute 'Data'

For your reference, I have attached an image below that depicts the current directory structure.

スクリーンショット 2023-08-22 19 25 09

I appreciate any guidance you can provide to help me resolve this issue. Thank you!

File openning error!

(py37) jjyy@jjyy-virtual-machine:~/TopOpt_in_PETSc_wrapped_in_Python-master$ python3 test_bracket.py
File openning error!
File openning error!
File openning error!

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.