def METHOD_NAME(self):
    for idx in range(self.exct):
        with open("calcmod.def") as f:
            lines = f.readlines()
        with open("calcmod_ex.def", "w") as fex:
            for line in lines:
               words = line.split()
               if words[0] == "CalcSpec" or words[0] == "OutputExVec":
                continue
               fex.write(line)
            fex.write("CalcSpec    1\n")
        with open("namelist.def") as f:
            lines = f.readlines()
        with open("namelist_ex_{}.def".format(idx), "w") as fex:
            for line in lines:
                words = line.split()
                if len(words) == 0:
                    continue
                if words[0] == "CalcMod" or words[0] == "SpectrumVec":
                    continue
                fex.write(line)
            fex.write("CalcMod calcmod_ex.def\n")
            fex.write("SpectrumVec    {}_eigenvec_{}\n".format(self.header, idx))