/[ascend]/trunk/ascend/compiler/test/test_autodiff.c
ViewVC logotype

Diff of /trunk/ascend/compiler/test/test_autodiff.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2545 by jpye, Mon Jan 30 20:02:00 2012 UTC revision 2546 by jpye, Mon Jan 30 20:08:37 2012 UTC
# Line 317  static void test_autodiff(void){ Line 317  static void test_autodiff(void){
317          OSPCLEAN(nonsafe_osp_2nd,SecondDer.nonsafeder);          OSPCLEAN(nonsafe_osp_2nd,SecondDer.nonsafeder);
318          OSPCLEAN(yacas_osp_1st,FirstDer.yacas);          OSPCLEAN(yacas_osp_1st,FirstDer.yacas);
319          OSPCLEAN(safe_osp_1st,FirstDer.safeder);          OSPCLEAN(safe_osp_1st,FirstDer.safeder);
320            OSPCLEAN(nonsafe_osp_1st,FirstDer.nonsafeder);
321      }else{      }else{
322          OSPCLEAN(first_yacas_osp,first_yacas);          OSPCLEAN(first_yacas_osp,first_yacas);
323          OSPCLEAN(second_yacas_osp,second_yacas);          OSPCLEAN(second_yacas_osp,second_yacas);
# Line 460  static void AutomateDiffTest(struct Inst Line 461  static void AutomateDiffTest(struct Inst
461      }      }
462      /** Testing non-safe routines */      /** Testing non-safe routines */
463    
464        ASC_FREE(infix_rel);
465    
466      /* we need to sigfpe trap this code or use the safe versions. */      /* we need to sigfpe trap this code or use the safe versions. */
467      RelationCalcResidGradRev(inst,&residual_rev,gradients_rev);      RelationCalcResidGradRev(inst,&residual_rev,gradients_rev);
468      RelationCalcResidGrad(inst,&residual_fwd,gradients_fwd);      RelationCalcResidGrad(inst,&residual_fwd,gradients_fwd);

Legend:
Removed from v.2545  
changed lines
  Added in v.2546

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22