Skip to content

Add ctl_printf and allow it to use a callback if set#39

Merged
stevengj merged 1 commit intoNanoComp:masterfrom
ChristopherHogan:chogan/ctl_printf
Apr 5, 2019
Merged

Add ctl_printf and allow it to use a callback if set#39
stevengj merged 1 commit intoNanoComp:masterfrom
ChristopherHogan:chogan/ctl_printf

Conversation

@ChristopherHogan
Copy link
Contributor

@stevengj stevengj merged commit 82df91e into NanoComp:master Apr 5, 2019
/**************************************************************************/

/* Allows writing to Python's stdout when running from Meep's Python interface */
void (*ctl_printf_callback)(const char *s) = NULL;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn’t this be declared in the header?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going to declare it in meep.i, but yeah, I guess it belongs in ctlgeom.h. Fixed in #40.

@ChristopherHogan ChristopherHogan deleted the chogan/ctl_printf branch April 8, 2019 21:27
bmwiedemann added a commit to bmwiedemann/openSUSE that referenced this pull request Aug 17, 2020
https://build.opensuse.org/request/show/827344
by user badshah400 + dimstar_suse
- Update Source URL, moved to https://github.com/NanoComp/libctl.
- update to 4.5.0:
  * New `make_slanted_prism` functions to make a prism with
    a given sidewall angle (gh#NanoComp/libctl#53).
  * Defined `LIBCTL_MAJOR_VERSION` etc. in `ctlgeom.h` header file
    when using stand-alone libctlgeom.
  * Bugfix in point-in-prism test (gh#NanoComp/libctl#49).
  * `geom_object_volume` function to get the volume of a 3d
    object (accelerates `box_overlap_with_object` for objects
    completely within a box) (gh#NanoComp/libctl#45).
  * `ctl_printf_callback` so that callers can capture stdout
    (gh#NanoComp/libctl#39).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants