예제 #1
0
파일: vdw.py 프로젝트: thonmaker/gpaw
    def set_grid_descriptor(self, gd):
        if (self.gd is not None and (self.gd.N_c == gd.N_c).all()
                and (self.gd.pbc_c == gd.pbc_c).all()
                and (self.gd.cell_cv == gd.cell_cv).all()):
            return

        MGGA.set_grid_descriptor(self, gd)
        FFTVDWFunctional.set_grid_descriptor(self, gd)
예제 #2
0
    def set_grid_descriptor(self, gd):
        if (self.gd is not None and
            (self.gd.N_c == gd.N_c).all() and
            (self.gd.pbc_c == gd.pbc_c).all() and
            (self.gd.cell_cv == gd.cell_cv).all()):
            return

        MGGA.set_grid_descriptor(self, gd)
        FFTVDWFunctional.set_grid_descriptor(self, gd)