bpmsimulation/add_waveforms.c

Go to the documentation of this file.
00001 
00004 #include <bpm/bpm_messages.h>
00005 #include <bpm/bpm_simulation.h>
00006 #include <bpm/bpm_rf.h>
00007 #include <bpm/bpm_wf.h>
00008 #include <bpm/bpm_nr.h>
00009 
00017 int add_waveforms( complexwf_t *RF, complexwf_t *TEMP, complex_t f ) {
00018 
00019   if ( ! RF || ! TEMP ) {
00020     bpm_error( "Invalid pointer argument in add_wave(...)", 
00021                __FILE__, __LINE__ );
00022     return BPM_FAILURE;
00023   }
00024 
00025   complexwf_t *Buf = complexwf_copy_new( TEMP );
00026 
00027   complexwf_scale( f, Buf );
00028   complexwf_add( RF, Buf );
00029 
00030   complexwf_delete( Buf );
00031  
00032   return BPM_SUCCESS;
00033 }
00034 
00035 // end of file

Generated on Thu Jan 10 10:18:04 2008 for libbpm by  doxygen 1.5.1