Name: Vladyslav Shtabovenko Date: 10/21/17-06:13:44 PM Z
I made some corrections to the code of Write2 in the development version, so now this should work also without FormatType->FortranForm]
Write2[“tmp.f”, test = a/100 + 5, FormatType -> FortranForm];
ReadString[“tmp.f”]
test = a*1.D-2 + 5D0
Cheers,
Vladyslav
> Is this o.k. ? :
>
> In[6]:= Write2[“/tmp/tt.f”,
> test=a/100 +5 x,FormatType->FortranForm];
>
> In[7]:= !!/tmp/tt.f
> test = 1.D-2*a + 5D0*x
> We’ve found a bug in function Write2 in FeynCalc.
> when something like a/100 is transformed to fortran code,
> it becomes a/100D2. This is wrong.