def METHOD_NAME(self):
    #[s] words to be changed
    ex_mod = []
    ex_mod.append('OmegaOrg')
    ex_mod.append('OmegaMin')
    ex_mod.append('OmegaMax')
    ex_mod.append('NOmega')
    ex_mod.append('OmegaIm')
    #[e] words to be changed
    #[s] omega P & M
    OmegaMax_P = self.OmegaMax
    OmegaMin_P = self.OmegaMin
    OmegaMax_M = self.OmegaMin+(self.OmegaMax-self.OmegaMin)/NOmega
    OmegaMin_M = -1.0*self.OmegaMax+(self.OmegaMax-self.OmegaMin)/NOmega
    OmegaIm_P  = self.OmegaIm
    OmegaIm_M  = -1.0*self.OmegaIm
    #[e] omega P & M
    with open("modpara.def") as f:
        lines = f.readlines()
        with open("Smodpara.def", "w") as fex:
            for line in lines:
                words = line.split()
                if len(words) == 0:
                    continue
                for tmp_word in ex_mod:
                    if words[0] == tmp_word:
                        print(tmp_word)
                        continue
                fex.write(line)
            fex.write("OmegaOrg       {}\n".format(self.energy_list[self.exct]))
            fex.write("NOmega         {}\n".format(self.NOmega))
            if self.sign > 0:
                fex.write("OmegaMin       {}\n".format(OmegaMin_P))
                fex.write("OmegaMax       {}\n".format(OmegaMax_P))
                fex.write("OmegaIm        {}\n".format(OmegaIm_P))
            else:
                fex.write("OmegaMin       {}\n".format(OmegaMin_M))
                fex.write("OmegaMax       {}\n".format(OmegaMax_M))
                fex.write("OmegaIm        {}\n".format(OmegaIm_M))
    with open("calcmod.def") as f:
        lines = f.readlines()
        with open("Scalcmod.def", "w") as fex:
            for line in lines:
                words = line.split()
                if words[0] == "CalcSpec" or words[0] == "InputEigenVec":
                    continue
                if words[0] == "OutputEigenVec" or words[0] == "ReStart":
                    continue
                fex.write(line)
            fex.write("  ReStart         0\n")
            fex.write("  CalcSpec        3\n")
            fex.write("  InputEigenVec   1\n")
            fex.write("  OutputEigenVec  0\n")
    with open("namelist.def") as f:
        lines = f.readlines()
        with open("Snamelist.def", "w") as fex:
            for line in lines:
                words = line.split()
                if len(words) == 0:
                    continue
                if words[0] == "CalcMod" or words[0] == "SpectrumVec":
                    continue
                if words[0] == "ModPara" or words[0] == "PairExcitation":
                    continue
                fex.write(line)
            fex.write("  ModPara           Smodpara.def\n")
            fex.write("  CalcMod           Scalcmod.def\n")
            fex.write("  PairExcitation    Current.def\n")
            fex.write("  SpectrumVec       {}_eigenvec_{}\n".format(self.header,self.exct))