[DFTB-Plus-User] CPP and //

Nick Papior nickpapior at gmail.com
Wed Oct 26 19:30:48 CEST 2016


You could wrap a script to translate // to / / then pre-process, then back
again. It is trivially done in sed.

--

Kind regards Nick Papior

On 26 Oct 2016 7:23 pm, "Markus Kaukonen" <markus.kaukonen at iki.fi> wrote:

> Dear All,
>
> I was trying to compile serial version of dftb+1.2 in a cray supercomputer
> (ftn was the compiler).
>
> There it is problematic that the CPP preprocessor cuts away ends of lines
> containing "//" character in fortran files.
> '//' means in fortran 'catenate two strings' but in c it stands for
> starting a comment. So I'm getting lots of errors.
>
> I wonder if someone has a clever solution to this.
>
> Terveisin, Markus
>
>
> --
> --www=http://www.iki.fi/markus.kaukonen
> --Markus.Kaukonen at iki.fi
> --office: www.helsinki.fi/kemia/svenskakemen/index_eng.html
> --home: Viinirinne 3 F 12, 02630 Espoo, FIN
> --tel: h 045-1242068
>
>
>
>
>
> _______________________________________________
> DFTB-Plus-User mailing list
> DFTB-Plus-User at mailman.zfn.uni-bremen.de
> https://mailman.zfn.uni-bremen.de/cgi-bin/mailman/listinfo/dftb-plus-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.zfn.uni-bremen.de/pipermail/dftb-plus-user/attachments/20161026/2ceda645/attachment-0001.html>


More information about the DFTB-Plus-User mailing list