Coder Social home page Coder Social logo

FamVC_ about cgns HOT 5 OPEN

adrianjhpc avatar adrianjhpc commented on June 11, 2024
FamVC_

from cgns.

Comments (5)

brtnfld avatar brtnfld commented on June 11, 2024

Depending on the family level, you should be able to use the family APIs: https://cgns.github.io/CGNS_docs_current/midlevel/families.html. FamVC is not a standard definition.

from cgns.

adrianjhpc avatar adrianjhpc commented on June 11, 2024

I do use the family APIs, i.e. cg_fambc_read_f, but the BCType parameter is garbage (i.e. things like -1412585528). Do I have to just ignore that data and deal with the errors myself?

from cgns.

brtnfld avatar brtnfld commented on June 11, 2024

We need to determine if there is a bug in the Fortran API (or C API) or if it's the CGNS file itself; it should not return garbage. Is the file ADF or ADFH (HDF5)? Are any issues reported by cgnscheck for the file? Did you install CGNS yourself, and did it pass all the tests? The Fortran family APIs are only tested in the examples.

from cgns.

adrianjhpc avatar adrianjhpc commented on June 11, 2024

HDF5, and cgnscheck doesn't complain. However, I'm not checking the error code returned by cg_fambc_read_f, so I'll check that it is not actually telling me it is failing anyway.

from cgns.

brtnfld avatar brtnfld commented on June 11, 2024

If cgnscheck passes, it is most likely an issue with the Fortran API. You most likely will not get an error because the C API does not do a sanity check of the bocotype returned. If you are comfortable with C and recompiling CGNS, you could print out the value returned from the C API in cg_ftoc.c (or cgnslib.c if you want to go further into the C library). You could also use the hdf5 tool "h5dump" on the file to see if the contents of the file are reasonable.

What compiler and system is this?

from cgns.

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.