Developer's guide: Difference between revisions

From SPEDAS Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 15: Line 15:


This is IDL:
This is IDL:
<syntaxhighlight lang="idl">
<source lang="idl">
x = findgen(100)/10
y = sin(x)/x
plot,x,y
 


;OUTPUT:
;OUTPUT:
Line 29: Line 33:
cblockSize = MB * 2047  ; two gigabytes
cblockSize = MB * 2047  ; two gigabytes
end
end
</syntaxhighlight>
</source>




<syntaxhighlight lang="-"></syntaxhighlight>
<syntaxhighlight lang="-"></syntaxhighlight>

Revision as of 01:29, 11 February 2014

Stub for page for the Developer's Guide.

Test for syntax highlighting

This is PHP: <syntaxhighlight lang="php"> <?php

   $v = "string";    // sample initialization

?> html text <?

   echo $v;         // end of php code

?> </syntaxhighlight>

This is IDL: <source lang="idl">

x = findgen(100)/10
y = sin(x)/x
plot,x,y


OUTPUT
Size of largest contiguous memory block available to IDL in megabytes.
-

function get_max_memblock

compile_opt idl2, hidden

MB = 2L^20  ; one megabyte cblockSize = MB * 2047  ; two gigabytes end </source>


<syntaxhighlight lang="-"></syntaxhighlight>