Revision 8e8882847d428a8f6e4080507e95b42acc6674ad authored by Rene Brun on 26 September 2006, 13:44:50 UTC, committed by Rene Brun on 26 September 2006, 13:44:50 UTC
When loading the geometry from a file, the element table is recreated (never streamed) so the attribute flags (defined/used) of elements are lost. The patch loops over all defined materials/mixtures in this case and restores the flags.

Affected: TFluka when geometry was loaded from the file.


git-svn-id: http://root.cern.ch/svn/root/trunk@16348 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 0900218
Raw File
Module.mk
# Module.mk for new module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000

MODDIR       := newdelete
MODDIRS      := $(MODDIR)/src
MODDIRI      := $(MODDIR)/inc

NEWDIR       := $(MODDIR)
NEWDIRS      := $(NEWDIR)/src
NEWDIRI      := $(NEWDIR)/inc

##### libNew #####
NEWH         := $(wildcard $(MODDIRI)/*.h)
NEWS         := $(wildcard $(MODDIRS)/*.cxx)
NEWO         := $(NEWS:.cxx=.o)

NEWDEP       := $(NEWO:.o=.d)

NEWLIB       := $(LPATH)/libNew.$(SOEXT)

# used in the main Makefile
ALLHDRS     += $(patsubst $(MODDIRI)/%.h,include/%.h,$(NEWH))
ALLLIBS     += $(NEWLIB)

# include all dependency files
INCLUDEFILES += $(NEWDEP)

##### local rules #####
include/%.h:    $(NEWDIRI)/%.h
		cp $< $@

$(NEWLIB):      $(NEWO) $(ORDER_) $(MAINLIBS)
		@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
		   "$(SOFLAGS)" libNew.$(SOEXT) $@ "$(NEWO)" "$(NEWLIBEXTRA)"

all-new:        $(NEWLIB)

clean-new:
		@rm -f $(NEWO)

clean::         clean-new

distclean-new:  clean-new
		@rm -f $(NEWDEP) $(NEWLIB)

distclean::     distclean-new
back to top