Posted on December 17, 2009 by kurniawano
In my research, I produced a number of figures of time sequences. And I wanted to create a movie from this multiple jpg files. I use mencoder to do this, to install type:
sudo apt-get install mencoder (if you are using debian based such as ubuntu)
Then to create the avi file, simply type:
mencoder mf://@list.txt -mf fps=5:type=jpg [...]
Filed under: Uncategorized | Tagged: linux, multimedia | Leave a Comment »
Posted on December 14, 2009 by kurniawano
If you don’t know why the sky is blue, you may want to read up this article:
Blue Sky
It is interesting and shows some physics of absorption and emission of light in day to day things you can see.
Filed under: Uncategorized | Tagged: physics | Leave a Comment »
Posted on December 11, 2009 by kurniawano
The default background color in plplot library is black while the frontcolor is red. To do this, use plscolbg and plcol0 function. The code in fortran is:
call plscolbg(255,255,255)
call plinit()
call plcol0(8)
Remember that plscolbg must be called before plinit. The above code change the background color to white (rgb=255,255,255) and the front color to brown (8, refer [...]
Filed under: Uncategorized | Tagged: plplot | Leave a Comment »
Posted on December 9, 2009 by kurniawano
I have been using Ubuntu 9.04 since it just works. The previous version of Kubuntu is pretty difficult to use. When using ubuntu, everything just works, I can watch video streaming, plugin downloaded autmatically, etc, etc.
So recently I have upgraded to 9.10, and I am so impressed with KDE 4. At least now the [...]
Filed under: Uncategorized | Leave a Comment »
Posted on November 5, 2009 by kurniawano
to get the current time in Fortran, we can use “system_clock” built-in function. To do this, take a look at the code below.
integer::count_0,count_rate,count_max, walltime, tstart,tend
call system_clock(count_0,count_rate,count_max)
tstart=count_0/count_rate
write(*,*) ‘begin (system_clock)’,tstart
To find out how long your program has run, add a similar line and save the time to, for example “t_end” variable, and get the difference. It will [...]
Filed under: Uncategorized | Tagged: fortran | Leave a Comment »
Posted on October 28, 2009 by kurniawano
As the code becomes parallel, the complexity increases. One of the common problem in parallel code is data race. To debug this problem, I encounter that Intel’s Thread Checker to be a good software. You can download from the Intel’s website for evaluation. I found about this when I read this article
When I run [...]
Filed under: Uncategorized | Tagged: fortran, openmp | Leave a Comment »
Posted on October 23, 2009 by kurniawano
I write a fortran code and save the data in VTK legacy format with structured points. However, for certain data somehow Paraview and Mayavi are unable to read the VTK file. It gives a “Generic Warning”, and says that
Error reading ascii data!
After days of debugging, it turns out that the cause is my precision, I [...]
Filed under: Uncategorized | Tagged: fortran, visualization | Leave a Comment »
Posted on October 14, 2009 by kurniawano
IEEE require that PDF documents are created with embedded fonts. To do this, run
$ updmap –setoption pdftexDownloadBase14 true
And then run pdflatex again. To check whether it is embedded, run pdffonts on to the newly created pdf. You will see something like this.
$ pdffonts draft_isic2009_1.pdf
name [...]
Filed under: Uncategorized | Tagged: latex | Leave a Comment »
Posted on October 6, 2009 by kurniawano
Octave has released a major version 3.2 and now the latest bug fix release is 3.2.3. I decided to install it. What I did was to download the tarball from www.octave.org and then unzip it. After that, I run the configure:
./configure –prefix=$HOME/Programs/Octave-3.2.3
where the prefix defines the location where to install the new version of octave. [...]
Filed under: Uncategorized | Tagged: octave | Leave a Comment »
Posted on October 2, 2009 by kurniawano
I have been trying to search for a good debugger for Fortran code in Linux. But it is very hard to find. I know that GDB is supposed to be able to do it. But when I debug Fortran 95 code compiled using GFortran, I simply don’t know how to display the dynamic size array. [...]
Filed under: Uncategorized | Tagged: debugging, Intel, linux | Leave a Comment »