def write_file(self):
        nrow, ncol, nlay, nper = self.parent.mf.nrow_ncol_nlay_nper
        f_vdf = open(self.fn_path, 'w')

        # item 1
        f_vdf.write('%10i%10i%10i%10i\n' % (self.mtdnconc, self.mfnadvfd,
                                            self.nswtcpl, self.iwtable))

        # item 2
        f_vdf.write('%10.4f%10.4f\n' % (self.densemin, self.densemax))

        # item 3
        if (self.nswtcpl > 1 or self.nswtcpl == -1):
            f_vdf.write('%10f\n' % (self.dnscrit))

        # item 4
        if self.mtdnconc >= 0:
            if self.nsrhoeos is 1:
                f_vdf.write('%10.4f%10.4f\n' % (self.denseref, self.denseslp))
            else:
                f_vdf.write('%10.4f%10.4f\n' % (self.denseref,
                                                self.denseslp[0]))

        elif self.mtdnconc == -1:
            f_vdf.write('%10.4f%10.4f%10.4f\n' % (self.denseref,
                                                  self.drhodprhd,
                                                  self.prhdref))
            f_vdf.write('%10i\n' % self.nsrhoeos)
            if self.nsrhoeos is 1:
                f_vdf.write('%10i%10.4f%10.4f\n' % (1, self.denseslp,
                                                    self.crhoref))
            else:
                for i in xrange(self.nsrhoeos-1):
                    mtrhospec = 2 + i
                    f_vdf.write('%10i%10.4f%10.4f\n' % (mtrhospec,
                                                        self.denseslp[i+1],
                                                        self.crhoref[i+1]))

        # item 5
        f_vdf.write('%10f\n' % (self.firstdt))

        # item 6
        if (self.mtdnconc == 0):
            f_vdf.write('%10i\n' % (self.indense))

        # item 7
            if (self.indense > 0):
                f_vdf.write(self.dense.get_file_entry())

        f_vdf.close()
        return
Tests the Last-Modified header with aware publication dates.
dataset/ETHPy150Open modflowpy/flopy/flopy/seawat/swtvdf.py/SeawatVdf.write_file--crossover with--dataset/ETHPy150Open django/django/tests/syndication_tests/tests.py/SyndicationFeedTest.test_feed_last_modified_time