D. Passing arrays from/to fortran or C code

These demos can be found in the demo directory of the package.
The PyArray type allows the developper to user an already allocated memory zone for your data. If you want to use the package with your code, either fortran or C (C++), you have to use the PyArray library, create an object of this type and set the memory zone with yours. Let us see how to make this in details, imagine your own software is what we are calling now the solver.

As a matter of fact, these examples are not dealing with pyCGNS, but rather with the Numerical Python arrays. These arrays are the preferred way to exchange data between the Python interpreter and any other entity.

The scenario and code examples are a way of doing things. You can use other techniques, packages, design choices to do the same things. The Python interpreter is very powerful at allowing extension or embedded processing, make your own mind.


Subsections