87 #ifdef G4MULTITHREADED
104 G4cout <<
" G4Material WARNING:"
105 <<
" define a material with density=0 is not allowed. \n"
106 <<
" The material " << name <<
" will be constructed with the"
127 if(!elm) { elm =
new G4Element(
"ELM_" + name, name, z, a); }
157 G4cout <<
"--- Warning from G4Material::G4Material()"
158 <<
" define a material with density=0 is not allowed. \n"
159 <<
" The material " << name <<
" will be constructed with the"
196 G4cout <<
"--- Warning from G4Material::G4Material()"
197 <<
" define a material with density=0 is not allowed. \n"
198 <<
" The material " << name <<
" will be constructed with the"
288 G4cout <<
"G4Material WARNING: duplicate name of material "
311 Zi = (*theElementVector)[i]->GetZ();
312 Ai = (*theElementVector)[i]->GetA();
383 G4cout <<
"G4Material::AddElement ERROR for " <<
fName <<
" nElement= "
386 "Attempt to add more than the declared number of elements.");
413 if(fraction < 0.0 || fraction > 1.0) {
414 G4cout <<
"G4Material::AddElement ERROR for " <<
fName <<
" and "
415 << element->
GetName() <<
" mass fraction= " << fraction
416 <<
" is wrong " <<
G4endl;
418 "Attempt to add element with wrong mass fraction");
438 G4cout <<
"G4Material::AddElement ERROR for " <<
fName <<
" nElement= "
441 "Attempt to add more than the declared number of elements.");
457 G4cout <<
"WARNING !! for " <<
fName <<
" sum of fractional masses "
458 << wtSum <<
" is not 1 - results may be wrong" <<
G4endl;
460 "Fractional masses are incorrect.");
477 if(fraction < 0.0 || fraction > 1.0) {
478 G4cout <<
"G4Material::AddMaterial ERROR for " <<
fName <<
" and "
479 << material->
GetName() <<
" mass fraction= " << fraction
482 "Attempt to add material with wrong mass fraction");
498 for(
G4int i=0; i<nold; ++i) {
510 for (
G4int elm=0; elm<nelm; ++elm)
530 G4cout <<
"G4Material::AddMaterial ERROR for " <<
fName <<
" nElement= "
533 "Attempt to add more than the declared number of components.");
548 G4cout <<
"G4Material::AddMaterial WARNING !! for " <<
fName
549 <<
" sum of fractional masses "
550 << wtSum <<
" is not 1 - results may be wrong"
553 "Fractional masses are incorrect.");
583 G4int Z = (*theElementVector)[i]->GetZasInt();
584 G4double A = (*theElementVector)[i]->GetN();
591 NILinv *=
amu/lambda0;
599 #ifdef G4MULTITHREADED
603 #ifdef G4MULTITHREADED
612 #ifdef G4MULTITHREADED
616 #ifdef G4MULTITHREADED
625 #ifdef G4MULTITHREADED
630 #ifdef G4MULTITHREADED
662 G4cout <<
"G4Material::GetMaterial() WARNING: The material: "
664 <<
" does not exist in the table. Return NULL pointer."
704 G4cout <<
"G4Material ERROR in GetZ. The material: " <<
fName
707 "the Atomic number is not well defined." );
717 G4cout <<
"G4Material ERROR in GetA. The material: " <<
fName
720 "the Atomic mass is not well defined." );
729 std::ios::fmtflags mode = flux.flags();
730 flux.setf(std::ios::fixed,std::ios::floatfield);
734 <<
" Material: " << std::setw(8) << material->
fName
736 <<
" density: " << std::setw(6) << std::setprecision(3)
738 <<
" RadL: " << std::setw(7) << std::setprecision(3)
740 <<
" Nucl.Int.Length: " << std::setw(7) << std::setprecision(3)
742 <<
"\n" << std::setw(30)
743 <<
" Imean: " << std::setw(7) << std::setprecision(3)
745 <<
" temperature: " << std::setw(6) << std::setprecision(2)
747 <<
" pressure: " << std::setw(6) << std::setprecision(2)
753 <<
"\n ElmMassFraction: "
754 << std::setw(6)<< std::setprecision(2)
756 <<
" ElmAbundance " << std::setw(6)<< std::setprecision(2)
761 flux.precision(prec);
762 flux.setf(mode,std::ios::floatfield);
783 flux <<
"\n***** Table : Nb of materials = " << MaterialTable.size()
786 for (
size_t i=0; i<MaterialTable.size(); ++i) {
805 #ifdef G4MULTITHREADED
811 #ifdef G4MULTITHREADED