[RegCNET] What does "#" mean?

bixq bixq at ictp.it
Fri Oct 9 10:47:26 CEST 2009


# mean compiling directives

Usually the if-block for the conditional compiling directives is like:

#ifdef XXX
         ......
#else
         ......
#endif

Then you specify -DXXX in the Makefile.



On Fri, 9 Oct 2009, Yan Libin wrote:

> c
> #ifdef MPP1
>      include 'regcm.param2'
> #else
>      include 'regcm.param'
> #endif
>      include 'parame'
>
>      include 'Commons/param1.cb'
>      include 'Commons/param3.cb'
> #ifdef MPP1
>      include 'Common2/main.cb'
>      include 'Common2/cvaria.cb'
>      include 'Common2/bats.cb2'
>
> Best regards,
> Libin Yan
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Dr. Xunqiang Bi         email:bixq at ictp.it
    Earth System Physics Group
    The Abdus Salam ICTP
    Strada Costiera, 11
    P.O. BOX 586, 34100 Trieste, ITALY
    Tel: +39-040-2240302  Fax: +39-040-2240449
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the RegCNET mailing list