IPB

Welcome Guest ( Log In | Register )

Basic question about SPICE and using vadd_c
ncc1701d
post Jul 5 2018, 05:55 PM
Post #1


Junior Member
**

Group: Members
Posts: 91
Joined: 21-August 06
Member No.: 1063



Hello,
In the documentation for cspice found here:

https://naif.jpl.nasa.gov/pub/naif/toolkit_...ice/vadd_c.html

It says:
"vout may overwrite either v1 or v2"
"can overwrite either v1 or v2"

my question: Under what circumstance would vout overwrite v1 or v2? Can someone explain this wording?

Those words about overwrite are not mentioned under FORTRANspice or IDLspice online documentation.
Is this a bug in Cspice or why is this mentioned here?
I ask because when using the vadd_c in my code I have got some unpredicatble results and wondering if this
"overwriting" is causing the probem or my confusion.
The simple example provided by the documentation works fine for me though in my code.
Ideas anyone?
thanks
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
mcaplinger
post Jul 5 2018, 07:56 PM
Post #2


Senior Member
****

Group: Members
Posts: 2507
Joined: 13-September 05
Member No.: 497



QUOTE (ncc1701d @ Jul 5 2018, 09:55 AM) *
my question: Under what circumstance would vout overwrite v1 or v2? Can someone explain this wording?

If vout was the same variable as v1 or v2. All it's saying is that this is OK.

Adding two vectors shouldn't really be confusing.


--------------------
Disclaimer: This post is based on public information only. Any opinions are my own.
Go to the top of the page
 
+Quote Post
ncc1701d
post Jul 5 2018, 11:45 PM
Post #3


Junior Member
**

Group: Members
Posts: 91
Joined: 21-August 06
Member No.: 1063



QUOTE (mcaplinger @ Jul 5 2018, 07:56 PM) *
If vout was the same variable as v1 or v2. All it's saying is that this is OK.

Adding two vectors shouldn't really be confusing.


thanks. It isnt nor should it be.. Just checking.
my problems then are most likely coming from somewhere else in my code
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 16th April 2024 - 07:03 AM
RULES AND GUIDELINES
Please read the Forum Rules and Guidelines before posting.

IMAGE COPYRIGHT
Images posted on UnmannedSpaceflight.com may be copyrighted. Do not reproduce without permission. Read here for further information on space images and copyright.

OPINIONS AND MODERATION
Opinions expressed on UnmannedSpaceflight.com are those of the individual posters and do not necessarily reflect the opinions of UnmannedSpaceflight.com or The Planetary Society. The all-volunteer UnmannedSpaceflight.com moderation team is wholly independent of The Planetary Society. The Planetary Society has no influence over decisions made by the UnmannedSpaceflight.com moderators.
SUPPORT THE FORUM
Unmannedspaceflight.com is funded by the Planetary Society. Please consider supporting our work and many other projects by donating to the Society or becoming a member.