[RegCNET] What does "#" mean?
Ahmed Tawfik
abtawfik at umich.edu
Fri Oct 9 10:31:09 CEST 2009
Hi Yan Libin
The "#" sign defines a preprocessing option. This means that the option is
either identified during compilation or identified when run through the cpp
command. For example, on the compilation line if you wanted to select MPP1
(meaning parallel) you would have something like "ifort -c -convert
big_endian -DMPP1 bdyin.F". RegCM however uses cpp command which converts
*.F to *.f during MAKECODE. If you are running parallel, you should see all
the "#" symbols have been removed in the *.f because cpp has selected the
appropriate condition. Hope this helps.
-Ahmed
------------------------------------------------------
Ahmed Tawfik
PhD Candidate
Department of Atmospheric Oceanic and Space Science
University of Michigan
(734) 936-0511
-------------------------------------------------------
2009/10/9 Yan Libin <zjuyanlibin at 163.com>
> Hi, Dear regcmers,
>
> In following codes, c means commentary, can anyone tell me what does #
> mean?
> Thank you in advance.
>
> c * for sea, sea-ice veg albedos are not set *
> c * these albedos are not treated as arrays here *
> c * *
> c * (depuv/10.0)= the ratio of upper soil layer to total *
> c * root depth; used to compute "wet" for soil albedo *
> c * solour = soil albedo for different coloured soils *
> c*********************************************************************
> 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
>
> _______________________________________________
> RegCNET mailing list
> RegCNET at lists.ictp.it
> https://lists.ictp.it/mailman/listinfo/regcnet
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ictp.it/pipermail/regcnet/attachments/20091009/6468afdd/attachment.html>
More information about the RegCNET
mailing list