Ignore:
Timestamp:
Dec 22, 2010, 3:52:27 PM (13 years ago)
Author:
garnier
Message:

geant4 tag 9.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPDiscreteTwoBody.cc

    r962 r1347  
    3030//080612 Bug fix contribution from Benoit Pirard and Laurent Desorgher (Univ. Bern) #2,3
    3131//080709 Bug fix Sampling Legendre expansion by T. Koi   
     32//101110 Bug fix in MF=6, LAW=2 case; contribution from E. Mendoza, D. Cano-Ott (CIEMAT)
    3233//
    3334#include "G4NeutronHPDiscreteTwoBody.hh"
     
    111112       for(i=0;i<theCoeff[it].GetNumberOfPoly(); i++)
    112113       {
    113          theStore.SetX(i, theCoeff[it].GetCoeff(i));
    114          theStore.SetY(i, theCoeff[it].GetCoeff(i));
     114         //101110
     115         //theStore.SetX(i, theCoeff[it].GetCoeff(i));
     116         //theStore.SetY(i, theCoeff[it].GetCoeff(i));
     117         theStore.SetX(i/2, theCoeff[it].GetCoeff(i));
     118         theStore.SetY(i/2, theCoeff[it].GetCoeff(i+1));
    115119         i++;
    116120       }
     
    125129       for(i=0;i<theCoeff[it].GetNumberOfPoly(); i++)
    126130       {
    127          theStore.SetX(i, theCoeff[it].GetCoeff(i));
    128          theStore.SetY(i, theCoeff[it].GetCoeff(i));
     131         //101110
     132         //theStore.SetX(i, theCoeff[it].GetCoeff(i));
     133         //theStore.SetY(i, theCoeff[it].GetCoeff(i));
     134         theStore.SetX(i/2, theCoeff[it].GetCoeff(i));
     135         theStore.SetY(i/2, theCoeff[it].GetCoeff(i+1));
    129136         i++;
    130137       }
     
    161168         for(i=0;i<theCoeff[it-1].GetNumberOfPoly(); i++)
    162169         {
    163            theBuff1.SetX(i, theCoeff[it-1].GetCoeff(i));
    164            theBuff1.SetY(i, theCoeff[it-1].GetCoeff(i));
     170           //101110
     171           //theBuff1.SetX(i, theCoeff[it-1].GetCoeff(i));
     172           //theBuff1.SetY(i, theCoeff[it-1].GetCoeff(i));
     173           theBuff1.SetX(i/2, theCoeff[it-1].GetCoeff(i));
     174           theBuff1.SetY(i/2, theCoeff[it-1].GetCoeff(i+1));
    165175           i++;
    166176         }
     
    171181         for(i=0;i<theCoeff[it].GetNumberOfPoly(); i++)
    172182         {
     183           //theBuff2.SetX(i, theCoeff[it].GetCoeff(i));
     184           //theBuff2.SetY(i, theCoeff[it].GetCoeff(i));
    173185           theBuff2.SetX(i, theCoeff[it].GetCoeff(i));
    174            theBuff2.SetY(i, theCoeff[it].GetCoeff(i));
     186           theBuff2.SetY(i, theCoeff[it].GetCoeff(i+1));
    175187           i++;
    176188         }
     
    215227         for(i=0;i<theCoeff[it-1].GetNumberOfPoly(); i++)
    216228         {
    217            theBuff1.SetX(i, theCoeff[it-1].GetCoeff(i));
    218            theBuff1.SetY(i, theCoeff[it-1].GetCoeff(i));
     229           //101110
     230           //theBuff1.SetX(i, theCoeff[it-1].GetCoeff(i));
     231           //theBuff1.SetY(i, theCoeff[it-1].GetCoeff(i));
     232           theBuff1.SetX(i/2, theCoeff[it-1].GetCoeff(i));
     233           theBuff1.SetY(i/2, theCoeff[it-1].GetCoeff(i+1));
    219234           i++;
    220235         }
     
    226241         for(i=0;i<theCoeff[it].GetNumberOfPoly(); i++)
    227242         {
    228            theBuff2.SetX(i, theCoeff[it].GetCoeff(i));
    229            theBuff2.SetY(i, theCoeff[it].GetCoeff(i));
     243           //101110
     244           //theBuff2.SetX(i, theCoeff[it].GetCoeff(i));
     245           //theBuff2.SetY(i, theCoeff[it].GetCoeff(i));
     246           theBuff2.SetX(i/2, theCoeff[it].GetCoeff(i));
     247           theBuff2.SetY(i/2, theCoeff[it].GetCoeff(i+1));
    230248           i++;
    231249         }
Note: See TracChangeset for help on using the changeset viewer.