This is a divisional of copending application Ser. No. 917,324, filed on Oct. 9, 1986, now U.S. Pat. No. 4834180. 
    
    
     FIELD OF THE INVENTION 
     This invention relates to novel gels resultant from melamine formaldehyde and other amino resins as general gelants for polymers containing hydroxyl, amino, amide, and thiol functionalities. Resultant gels are useful as permeability control agents for high temperature reservoirs. 
     BACKGROUND OF THE INVENTION 
     One of the major problems encountered in the waterflooding of permeability-stratified reservoirs is the preferential flow of water through the more permeable zones between injector and producer wells. This preferential flow greatly reduces the sweep efficiency of driving fluids. This reduction in sweep efficiency can also occur in steam and miscible CO 2  -flooding processes. 
     To improve sweep efficiency, the permeability of such zones must be reduced. This technique is commonly known as permeability control. Polymer gels are often placed into high permeability zones to impede the flow rate through such zones. 
     Metal-complexed polymer gels are widely used for profile control. For example, Al(III) and Cr(III) are used to crosslink polyacrylamide. Other metal ions, such as Ti(IV), Zr(IV), Fe(III), etc., are also useful as gelants for polymers. 
     Several limitations may interfere with the use of metal ions in the 1 preparation of gels for profile control. One limitation is that each metal is reactive only to certain functionalities. For example, Al, Cr, and Zr are reactive to amide and carboxyl groups, while Ti is reactive to hydroxyl groups. A proper match of the polymer with the appropriate metal crosslinker must be considered. There is no presently known general metal crosslinker for all polymer types. Carbonate, bicarbonate, and sulfate anions are known to interfere with the gelation of Cr, Zr, and Al. Another limitation is that pH control is important for most metal crosslinking reactions. It is easy to control the pH when the gel is prepared above surface but difficult to do when an in-situ gelation process is ued. Furthermore, ligand metal bond formation and stability may be affected by high ionic strength and the temperature of reservoir brine. At substantially high brine concentrations and high temperatures, metal-ligand bonds can dissociate due to unfavorable equilibria. 
     Therefore, what is needed are economical amino resins which will co-gel and crosslink covalently with all polymers known to be useful for profile control where said polymers contain amine, amide, hydroxyl, or thiol functionalities. The utilized gelation reaction should proceed under all pH conditions; should not require an acid or base to catalyze; and should not be affected by reservoir brine. The resultant linkages should be stable at substantially high temperatures and high salinities. 
     SUMMARY OF THE INVENTION 
     This invention is directed to a composition of matter comprising an aminoplast resin containing a methyol group and its alkylated varieties which are reactive with a polymer having at least one functional group selected from a member of the group consisting of an amine, an amide, a hydroxyl, or a thiol. Said methyol group and its alkylated varieties contained on said resin can condense to form a cured resin. 
     Said crosslinked aminoplast resin and said polymer form a gel which is useful in producing hydrocarbonaceous fluids from a reservoir containing same and greatly improves the sweep efficiency of driving fluids. Sweep efficiencies are also improved in water flood, steam flood, and miscible carbon dioxide flood processes. 
     It is therefore an object of this invention to provide for economical aminoplast resins which will co-gel and crosslink with all polymers useful for profile control. 
     It is another object of this invention to provide a gelation reaction which can proceed under all pH conditions encountered in a hydrocarbonaceous reservoir. 
     It is a yet further object of this invention to provide for a substantially stable gel when high temperatures are encountered in a reservoir. 
     It is a still yet further object of this invention to provide for a gelation reaction which will proceed in a saline hydrocarbonaceous reservoir environment. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     In the practice of this invention, a melamine formaldehyde (&#34;MF&#34;) resin is formed as a reaction product of melamine and formaldehyde. Said resin is known as an aminoplast or amino resin which comprises a class of thermo-setting resins made by the reaction of an amine with an aldehyde. The resultant resin is reacted with a crosslinkable polymer in an aqueous medium under all pH conditions and needs no catalyst. Said polymer has at least one functional group selected from a member of the group consisting of an amine, an amide, a hydroxyl, or a thiol group. This reaction can be carried out at ambient conditions, and also under conditions occurring in a subterranean hydrocarbonaceous formation. The gel resultant from said reaction can be used in the recovery of hydrocarbonaceous fluids from a formation containing same. 
     These gels are novel in that they are unaffected by high saline concentrations often encountered in oil reservoirs. High temperatures encountered in said reservoirs do not adversely affect said gels. Carbonate, bicarbonate, and sulfate anions encountered in oil reservoirs which are known to affect certain metal crosslinked gels, but do not affect these novel gels. These novel gels can be formed under all pH conditions and are particularly useful in pH conditions of 10 or less. A method for making a kindred gel is discussed in U.S. Pat. No. 4,157,322 which issued to Colegrove on June 5, 1979. Unlike Colegrove, the instant gelation reaction is not catalyzed by a salt which is acid generating upon the application of heat. This patent is hereby incorporated by reference. 
     Polymers having functional groups such as NH 2 , --CONH 2 , --OH, --SH can be gelled with methylated, MF resins. Some acceptable polymers include polyacrylamide, acrylamide modified polyvinyl alcohol (&#34;AMPVA&#34;), Xanthan biopolymers, poly (acrylamide-co-acryl-amido-2-methylpropanesulfonate) &#34;AM-AMPS&#34;, &#34;Phillips HE&#34; polymers (a family of acrylamide containing copolymers), and polyvinyl alcohol. Polymers mentioned in U.S. Pat. No. 4,157,322, supra, may be utilized as long as those polymers contain the functional groups above mentioned. Polymer concentration in said gels range from about 0.1 to about 5.0 wt. percent. These polymer concentrations vary depending upon the molecular weight of polymer used. Lower weight polymers require a higher polymer concentration to gel. A polymer concentration of about 0.2-3.0 wt. percent is preferred. This crosslinking/co-gelation method produces high integrity polymer gels able to withstand high temperatures and high salinity conditions often found in subterranean hydrocarbonaceous formations. 
     Methylated MF derived as a reaction product of melamine and formaldehyde has a molar ratio of between 1-6. A ratio of 3-6 is commonly found in commercial resins. The methyol group, --CH 2  OH and its methylated varieties are reactive to various functional groups such as NH 2 , --CONH 2 , --OH, --SH and can also self-condense to form cured resins. Its preparation is convenient and well documented in preparative polymer manuals. 
     The melamine resin that is utilized in this invention can be a commercial product such as Cyanamid&#39;s Parez®resins. Included among these melamine-formaldehyde (melamine) resins which are useful in this invention are the partially methylated resins and the hexamethoxymethyl resins (i.e. American Cyanamid&#39;s Parez, Cymel.sup.™ 373, Cymel 370, Cymel 303, and Cymel 380). The resin, however, has to be one that is soluble or dispersible in an aqueous medium. Other amino resins can also be used. Non-limiting examples are urea-formaldehyde, ethylene and propylene urea formaldehyde, triazone, uran, and glyoxal resins. The amount of MF resins required for adequate gel formation is in the ratio of 10:1--1:10 polymer to amino resins. Preferred polymer concentrations are from about 0.2 to about 5.0 wt. percent. Amino resins are preferred crosslinkers because they (1) are economical to use; (2) can be applied to a wide variety of polymers; (3) form thermally stable, brine tolerant gels; and (4) do not need an acid or base catalyst. 
     The gelation rate of the composition depends on the amount of each of the components and the temperature at which the reaction is conducted. Thus, one can tailor the gel rate and gel strength of the composition by adjusting the amount of the polymer, the resin amount and the temperature. The higher the temperature at given concentrations of resin and polymer will result in a faster gelation time. If a thicker gelled composition is desired, the polymer and resin concentrations may be increased for a given temperature. 
     Gels resultant from the gelation reaction were formed in about a 15 to 30 wt. % brine solution containing at least about 1500 ppm Ca(II) and at least about 500 ppm Mg(II). Said formed gels were stable as determined by sustained gel integrity and low gel shrinkage at least about 195° F. for at least three months. Examples of preferred gel compositions are set forth below. 
     
         ______________________________________Gelation of Melamine- Formaldehyde Crosslinker          Poly-   30%     Deionized                                  ParezExample        mer     Brine.sup.8                          Water   613.sup.1______________________________________10% AMPVA.sup.2 #1            5     g     5   g   0         0.4 g #2            2.5   g     5   g   2.5  g    0.4 gAMPVA.sup.3 10% #3            2.5   g     5   g   2.5  g    0.4 g #4            5     g     5   g   0         0.4 gPVA.sup.4 5% #5            5     g     2.5 g   2.5  g    0.4 gAMPS-PVA.sup.5 10% #6            5     g     2.5 g   2.5  g    0.4 gMagnifloc.sup.6 1% #7            5     g     5   g   0         0.4 g #8            5     g     2.5 g   2.5  g    0.4 gAM-AMPS.sup.7 1% #9            5     g     5   g   0         0.4 g #10           2.5   g     5   g   2.5  g    0.4 g______________________________________Gelation with Trimethylolmelamine (TM)          Poly-   30%     DeionizedExample        mer     Brine.sup.8                          Water   TM______________________________________S-130 1%.sup.9#11            5     g     5   g   --        0.4 g#12            5     g     5   g             0.2 gHE B 2%.sup.10#13            2.5   g     5   g   2.5  g    0.4 g#14            2.5   g     5   g   2.5  g    0.4 gHE E 2%#15            2.5   g     5   g   2.5  g    0.4 g#16            2.5   g     5   g   2.5  g    0.2 gXanthan.sup.11 2%#17            2.5   g     5   g   2.5  g    0.4 g#18            2.5   g     5   g   2.5  g    0.2 g______________________________________ .sup.1 A commmercial 80% active amino resin obtainable from American Cyanamid .sup.2 Acrylamide modified polyvinyl alcohol .sup.3 Acrylamido2-methyl-propanesulfonate/acrylamide modified polyvinyl alcohol .sup.4 Polyvinyl alcohol .sup.5 Acrylamido2-methyl-propanesulfonate/polyvinyl alcohol .sup.6 Polyacrylamide obtained from American Cyanamid .sup.7 Poly (acrylamideco-acrylamido-2-methyl-propanesulfonate) .sup.8 30% NaCl, 2000 ppm Ca, 1000 ppm Mg .sup.9 Kelco &#34;S130&#34; biopolymer .sup.10 Phillips HE .sup.11 Pfizer Flocon biopolymer 
    
     Where it is desired to obtain increased sweep efficiency, gels of this invention can be used to plug a previously sweep portion of a formation. Said gels can be directed to areas of increased porosity by utilization in any of the below methods. 
     One method where gels of this invention can be utilized is during a waterflooding process for the recovery of oil from a subterranean formation. After plugging the more permeable zones of a reservoir with the novel gels of this invention, a waterflooding process can be commenced. U.S. Pat. No. 4,479,894, issued to Chen et al., describes one such waterflooding process. This patent is hereby incorporated by reference in its entirety. 
     Steamflood processes which can be utilized when employing the gels described herein are detailed in U.S. Pat. Nos. 4,489,783 and 3,918,521 issued to Shu and Snavely, respectively. These patents are hereby incorporated by reference herein. 
     Gels described herein can also be used in conjunction with a cyclic carbon dioxide steam stimulation in a heavy oil recovery process to obtain greater sweep efficiency. Cyclic carbon dioxide steam stimulation can be commenced after plugging the more permeable zones of the reservoir with the novel gels of this invention. A suitable process is described in U.S. Pat. No. 4,565,249 which issued to Pebdani et al. This patent is hereby incorporated by reference in its entirety. Increased sweep efficiency can be obtained when the subject gels are used in combination with a carbon dioxide process by lowering the carbon dioxide minimum miscibility pressure (&#34;MMP&#34;) and recovering oil. Prior to commencement of the carbon dioxide process, the more permeable zones are plugged with these novel gels. Carbon dioxide MMP in an oil recovery process is described in U.S. Pat. No. 4,513,821 issued to Shu which is hereby incorporated by reference. 
     Although the present invention has been described with preferred embodiments, it is to be understood that modifications and variations may be resorted to without departing from the spirit and scope of this invention, as those skilled in the art will readily understand. Such modifications and variations are considered to be within the purview and scope of the appended claims.
A composition of matter wherein amino resins such as melamine formaldehyde ("MF") resins co-gel and crosslink with polymers useful for profile control where said polymers have amine, amide, hydroxyl and thiol functionalities. Resulting gels are useful as permeability control agents for high temperature reservoirs during a water-flooding operation.