A Subroutine To Slow Down Calculation/execution In GFortran

Hi there. I need to slow execution of certain portions of my programs (GFortran) to demonstrate in "slow motion" interpolation between points on a graph. The SLEEP subroutine requires a default integer as an argument and thus appears to be too slow. I found one subroutine but it eats up 100% of CPU time. Thanks, - Alex


Similar Content



Gfortran: Attribute That Requires Explicit Interface ???

Hi there,

Trying to compile a few Gfortran lines in Ubuntu 12.04 I get this error:

Quote:
lun = newunit(unit)
1
Error: Dummy argument 'unit' of procedure 'newunit' at (1) has an attribute that requires an explicit interface for this procedure
The number one in fact points to the word "unit" not "lun" in the terminal. It got left-shifted when posted.

The code itself:

Code:
program main
  INTEGER*4 counter,lun,unit
  REAL*8, parameter :: pi = 3.141592653589793
  unit = 10
  lun = newunit(unit)
  ...................  
end program main

What does it all mean and how shall I change the code to compile it without an error?

Thanks, - A.

Want To Update GCC And Gfortran As A Result

Code:
$ gfortran --version
GNU Fortran (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

How can I upgrade gcc?

I've tried a few tricks, none worked so far.

Thanks, - Alex

Why My Linux Is Slow?

Hello.
Sometimes my Linux is very Slow and HDD LED is always Red and show that HDD working a lot. How can I find why HDD is working a lot? Which command can help me?

Thank you.

Forgotten Sudo (su) And User Password For App Install Etc...

Hi,
After a long time of about 5 months without my PC and Win7 which I havent had the time to really check out whats wrong with / I am back on a slow laptop with 256 of RAM, PIIIM on 1113MHz which I had for years, and tried out a few lighweight distros after getting rid of Win XP.
Now, I am running on anti x which I found to be a great OS, speedwise as it could be on such a slow machine.
My problem though is I forgot my root pass and my user pass which seem to be different from each other because I remember I could use terminal to update but not the antix Control Center which keeps asking me for a different pass. Any help in getting the both back so I wouldn't have to re-install and before doing a re-install doing a backup?

It's a pain in the ass, since I basically use(d) this laptop for writing, and there are files of plenty.

Ty in advance.

Cheers and good luck!

My Linux On VmWare Is Slow

I have Windows 8.1 Update as my HOST operating system.
I have installed vmware workstation and installed on it the latest
version of CentOS (7.0) as Guest OS.

I have 8 GIG of RAM and have allocated to VmWare around 5GIG~.
HDD size is 30 GIG.
I also have de-fragmented the HDD.

From the beginning of the installation of the CentOS it was SLOW. It is NOT a sudden change or decline in performance.

Formerly, I had installd CentOS 6.4 which worked OK and had not speed problem while I just had allocated 1 GIG of RAM. Where do you think lies the problem?

NFS Response Is Very Slow

Hi Everyone,

We are using Dell Power Edge R510 server as a central storage in Linux network. I have configured RAID6 on 10 near-line SAS hard disks. Using NFS i have exported one directory and mounted it on other machines.

Recently we are facing one problem, when anyone read/write big file (2-3GB)from NFS drive,others feel very slow access to that drive. Sometime we can't open simple text file till complete read/write process.

I have remounted NFS drive but still problem as it is.

Can anyone help me to solve this problem.

Help Please Debian

I am attempting to install debian to a desktop and It is not configuring my wireless adapter. I am including the error messages as follows:

"missing firm ware file htc-9271.fw"
"Network is probably not using dhcp protocol, network may be slow or hardare not working properly"

I attempted to go to /etc/network/interfaces as root however it says I do not have permission. I then tried adding a new user then going to visudo to add permissions but am unable to insert anything using the (i) command. So at this point I am at a loss.

Any help is greatly appreciated and thank you for your time.

Need Opinions On What Distro To Use For My Setup

Hello all, before I get started I just want to make it clear that I have done hours of research on the question I'm about to ask, so... lol

Anyway, I am completely-totaly new to linux, of all forms, have been a Windows XP Pro guy for years now, and it's what I know inside and out.

Well that's beat, even though I still am using it, and I can't afford a new pc or a new windows cd. I'm broke for now. Besides all that, I like linux so far from what I ahve been woking with. (xubuntu)

[QUESTIONS]:

I bought a notebook from a very desperate crackhead for $20:

Compaq Presario x1000
(not much ram, i think only 256 or 512)
-It's slow as #$@%, but I managed to install Xubuntu on it, and it still sucks. Very. Very slow. I cant watch any videos on it or really do anything other than just look up websites, and that sucks too.

Sorry, nevermind that above, I am just stating that so you see what my first Linux introduction has been. This is what I have got used to so far, and I seem to like it.

I am not at all concerned with this notebook at this point. However, what I am concerned with, and this is my main question:

I have a Desktop:

P4 2.6 GHz /1.5 GB Ram
- I have XP Pro SP3 installed on the 1st partition and I installed Ubuntu v14.xxx (very latest version) on the 2nd partition.

It's extremely slow, but XP runs just fine. I chose the first option upon install where it does the auto-setup running alongside XP.

So far I do not really like it. I have no start menu like I had on the notebook in the upper left hand corner, and I kind of like that.

Well through messing around I'm guessing that is something called: xfce ? Not sure.

Anyway, sorry for rambling about, but here is my MAIN QUESTION:

What Distro of Linux should I install on this PC where it will run nice and fast/smooth?

~thankyou.

Best Distro For A Cheap Recent Laptop?

Hi

I'm a telecom/IT contractor and my work laptop died so instead of buying a new one, I decided to give my spare laptop a try. It's a cheap Lenovo G585 with only 2Gb ram and a AMD E1. Needless to say this is a real slow laptop. W8 was preinstalled and barely runs. Even for simple work related tasks its too slow.

Instead of wasting money on it, I am contemplating the idea of installing a Linux distro. I manage via ssh a few linux servers for my customers (centos, red hat, ubuntu server) but actually never used it as my main OS.

I just want something lighter than W8 so the laptop will be faster. Which distro should I get? I was thinking about LXLE but there's too much distros I can't choose.

Speed is the priority in this case. I also like a good looking UI.

Also, how's Microsoft Remote desktop from a Linux client? Is it fast and well optimized?

Thanks!

Mplayer Install Gc Error

I've just installed Ubuntu 14.04 LTS on my virtual machine,(it's a little bit too slow but this is not my main problem), I want to install mplayer on it, I've downoaded mplayer source code with binary codecs (essentials) from the official website, I read carefully the install and readme docs, but once I type "./onfigure --enable-gui"
I got a message like : "gc error, cc could not excute ...." is there any help ?

NB : I don't have internet access