Necpp

Latest version: v1.7.3.5

Safety actively analyzes 628936 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 6

1.2.6

* Added output flag for XML -x
* Cleaned up output file handling in nec_results (a little)

1.2.5

* Fixed a bug in handling of patches. Thanks to the hard work of Neoklis and Jerry Burke (original author), this has been sorted out. It is tested with neokliks_bug.nec (in test data) and caused a segmentation fault in all versions, C, C++ and FORTRAN.
* Some code has been added for handling arbitrary media - permittivity and permeability. A new card has been added as well.

1.2.4

* (Remi Sassolas) Major Progress in the Python Port
* (Remi Sassolas) Fixed crashing bug in structure current printing. This bug would happen when someone absent-minded (or just silly) would ask the currents to be printed using the output format designed for a receiving pattern, but wouldn't use an incident plane wave as the excitation type. Then NEC-2 would crash (segmentation fault)
* (Remi Sassolas) New Results object for handling structure currents.

1.2.3

* Added new test case (pjw_small.nec) that appears to fail on the radiation pattern result when compared to original FORTRAN. This was caused by an error in the original FORTRAN parser. Decided to do better and use a proper LL(k) parser generator.
* Added ANTLR grammar (see http://www.antlr.org) that generates a parser for nec files. This was motivated by a silent failure the caused the wrong result to be printed. For the moment this development is separate (inside the antlr directory). However by version 1.3 we will be using an ANTLR grammar.
* Moved lots of code from header files into .cpp files. This makes the libnecpp more usable as a C++ shared library.
* Added a new method 'calculate_network_data()' to the nec_context class. This separates out the calculations from the print_network_data() method. This code is still ugly but should be functional.
* Moved development to alioth.debian.org to support the python programming effort.
* src/PowerBudget.h: Allow for blank line following POWER INPUT to cope with FORTRAN output
* src/nec2cpp.cpp: Check number of parameters in the TL card and return an error if not all parameters are supplied. This resolves an ambiguity when blank parameters are present (we can't test for these).
* src/nec_radiation_pattern.h: Added accessor functions to the nec_radiation_pattern results class.
* Added an example file "example/test_nec.cpp" to show how to use a results object from a C++ program.

1.2.2

* Trap condition where n<=1 in c_geometry::connect_segments pending finding where the bug is. The array icon1 does not have its values initialized under these circumstances and bad things happen (walk all over memory).
* Cleaned up the connect_segments code in c_geometry.h. Moved many variable declarations into local contexts.
* Added L1-norm and Euclidian norm to the nec_3vector class (use it in c_geometry::connect_segments)
* Clean up local variables in nec_context::nhfld()
* Clean up local variables in nec_context::pcint()
* Fixed conversion of int to bool when calling nec_context::efld(). Removed unnecessary ij variable.

1.2.1

* Make ksymp a private member of nec_ground. Replaced it with a boolean accessor method present() that indicates whether the ground is present. Then removed some ugly code in nec_context::efld().
* Switched on all warnings I can think of (more than -Wall) in the debug build. This found a lot of shadowed variables.
* Removed shadowed variables in c_geometry.
* Switched normalized receiving pattern output to use the results object.

Page 4 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.