Question: Memory Issue Using Code Generation

I am using the code generation package to generate fortran 90 code.   In a Maple module I have a procedure that uses "CodeGeneration[Fortran]" to turn a symbolic matrix into a subroutine in Fortran; i.e., given an n-vector q the Fortran subroutine will return an n by n matrix.  However, since Maple's "Fortran" command does not support Fortran 90 I have utilized the StringTools[RegSubs] to alter the line continuation differences between fortran 77 and fortran 90.  The procedure works fine until my matrix gets large, at which point I get an error that says "RegSubs: out of memory".  If anybody has any tips on how to attack this issue I would greatly appreciate it.  Thanks.

Please Wait...