General :: Write A Script To Execute A Fortran Code That Reads In Parameters From Keyboard Typing?

Apr 18, 2011

I am trying to write a script (especially C-shell) to execute a fortran code that reads in parameters from keyboard typing. I will have to process this .F code for many times with the parameters the same for all my data files, therefore, I don't have to type in everytime I execute the .F code. But I don't know what is the command in c shell to read in a text files that contains all the parameters I want and can make the shell read in appropriately to feed the .F code.

View 3 Replies


ADVERTISEMENT

General :: Shell Script That Reads From Parameters File?

Nov 3, 2009

what I am trying to do but I am not sure exactly how to do it. I want to write a shell script that will replace certain values in a file with environment specific information that it pulls from a parameters file. The paramaters file looks like the following...

[dev]
ip=10.15.109.41
name=dev1.mydomain.com

[code]...

View 4 Replies View Related

Ubuntu :: Click On A Text Box To Write And Star Typing Only To Find Out Typing Somewhere Other Than Where Clicked?

Jun 17, 2010

Half the time I click on a text box to write and star typing only to find out I'm typing somewhere other than where I clicked.It's not dwell click and the active text box seems to be related to mouseover.

View 2 Replies View Related

General :: Compiling Fortran Code In SuSe 11.3

May 18, 2011

I can compile an old fortran program on my macbook using the Absoft fortran compiler and the command:f90 'W132 C SOURCECODE.flU77lV77

Unfortunately I cannot find f90 for linux. I can, however, find gfortran. However, gfortran does not recognize the flag -W132 and when I remove -W132 the compiler thinks all lines end after a certain number of characters. Does anyone know what flags call the equivalent type of compilation using gfortran? Is it possible I need to use f90? If so, is there a free version of f90 for linux?

View 8 Replies View Related

General :: Command To Compile And Execute Fortran Program On System Machine?

Apr 8, 2010

Command to compile n execute a Fortran program on a Linux machine

View 6 Replies View Related

General :: Difference Between Buffered Disk Reads And Cached Reads?

Jul 13, 2011

I was analyzing the Disk read using hdparm utility. This is what i got as a result.

Code:

# hdparm -t /dev/sda

/dev/sda:

Timing buffered disk reads: 108 MB in 3.04 seconds = 35.51 MB/sec

Code:

# hdparm -T /dev/sda

/dev/sda:

Timing cached reads: 3496 MB in 1.99 seconds = 1756.56 MB/sec I m not sure what does Cache read and buffered disk read mean.

View 1 Replies View Related

General :: Keyboard Input Time Is More For Typing Commands?

Aug 15, 2010

While typing commands it takes more time to type.let me know on how to correct this

View 3 Replies View Related

Programming :: Calling Fortran 95 Code In C?

Apr 15, 2009

I'm trying to call some Fortran 95 code in C, but I'm having problems with integers not having the same value in C as in Fortran, and changing values upon each run of the program. I think it has to do with the integer type, but I don't know how to fix it. I'm running Gentoo x86. Here are the files I've got:

foo.c:

Code:

#include <stdio.h>
extern int qux_();
main() {

[code]....

View 2 Replies View Related

OpenSUSE Hardware :: DVD Reads / Does Not Write - Unspecified Error

Jan 11, 2011

Problem: MATSHITA DVD RAM UJ-851S ( rev 1.50) reads dvds and plays audio/movie (.avi,.mp4,mp3,etc) but refuses to burn.

Media: Taiyo Yuden DVD (always excellent!!)
Sony DVD+/-R (w/"AccuCore" technolgy; recent purchase 3 days ago)
Sony CR -R (previously flawless, at least for audio, doc backup)

Notebook: HP Pavilion dv9000 series (dv9310us)

Symptoms: 1. Reads all media
2. Starts burn w/acetoneiso, brasero, nerolinux 4.0.0;
3. Gets to 35% - 90% complete; then each app above reports:
"unspecified error.. .. .." or words to this effect, asks for log/bug report, etc.

View 8 Replies View Related

Ubuntu :: Changing Fortran Code To Python?

Aug 19, 2011

I have a big fortran code for FE analysis. I want to change the code to python. I am curious to know, whether I will get any advantage over speed, If not at least the speed should not be less than what fortran gives. Should I go for it.

View 2 Replies View Related

Programming :: Fortran Code On 32/64bit Machine

Jun 10, 2009

I'm not a Fortran coder but I need to call the sub-routine ADAPT.f from a c code.This subroutine calculates a multiple integral of a given function.My problem is that the c code works with no problem in a 32 bit machine but it does not in a 64 bit machine, and the problem seems to be related to adapt, which calculations gives a NA rather than the result of integration.Since fortran is quite obscure for me, I don't know why is this happening. Maybe I should change some data type (from real to double), but I'm not sure. Does anyone have a clue?

View 3 Replies View Related

Software :: Fortran Compiler That Can Compile Progs On Machine / But Execute On Windows XP

Jan 7, 2010

i'm currently using the gnu compiler "gfortran" , but i don't think the executable files it creates are compatible with windows XP (though i may be mistaken). my boss needs a few simple programs that i have written, but i will not be able to compile the code on his pc. are there any compilers out there that i can use to create such executables?

View 3 Replies View Related

Programming :: Fortran 90 Code - Makefile Insensitive To Change

Mar 10, 2011

I am dealing with one FORTRAN 90 code, have made small changes.

milenko@milenkons:~/mt4$ make mt4
make: 'mt4' is up to date.
milenko@milenkons:~/mt4$ ifort -c MT2DDIB1.FOR
milenko@milenkons:~/mt4$ make mt4
make: 'mt4' is up to date.
milenko@milenkons:~/mt4$ make mt4
make: 'mt4' is up to date.
milenko@milenkons:~/mt4$ make mt4
make: 'mt4' is up to date.

I go for make command but it does not see that the source code has been modified.Than I do compilation from command line,try make again but no use.
F95=ifort
FFLAFGS= -O1

mt3: driver_mt2ddi.o constants.o settings.o params.o mt2dmod.o fdsystem.o mt2ddat.o mt2dsens.o
$(F95) -o $(FFLAGS) mt3 constants.o settings.o params.o mt2dmod.o fdsystem.o mt2ddat.o mt2dsens.o driver_mt2ddi.o
driver_mt2ddi.o: driver_mt2ddi.for constants.o settings.o params.o mt2dmod.o fdsystem.o mt2ddat.o mt2dsens.o
$(F95) -c $(FFLAGS) driver_mt2ddi.for

View 2 Replies View Related

Ubuntu :: Fortran Syntax Highlighting And Code Folding Editor Wanted?

Jul 27, 2011

I am looking for a text editor that does 1) syntax highlighting2) code folding3) it would be a bonus if I could set which macros were defined and it would show me the source I have tried geany, and codeblocks. Both incorrectly code fold around preprocessor #ifdef and #endif. The gedit plugin doesn't seem to work at all

View 7 Replies View Related

General :: File Permission. Write And Execute Only?

Jan 11, 2011

Is there any use if a file has only write and execute permission and not read permission?

View 2 Replies View Related

Software :: Reading And Writing SAC (Seismic Analysis Code) Data Files In Fortran Codes

Dec 2, 2008

I synthesized a seismogram by using Fortran codes, I need plot the synthesized seismogram and the data together, so I can verify the accuracy of code. Now I encounter a question: how to read the SAC data by Fortran code, I have searched some codes on Internet, the details as follow:the velr12a.sac is my data file.

Code:
c read sac file
PROGRAM RSAC
PARAMETER (MAX=1000)
DIMENSION YARRAY(MAX)
CHARACTER*10 KNAME

[Code]....

View 2 Replies View Related

Programming :: Passing Parameters From C Code To Bash Script

Apr 16, 2011

I get no print to stdout on screen from the C code.Does bash somehow block or mask it?I get print from bash. I get this error in the non-test bash script like: let "rdval = $rdstr"syntax error: operand expected (error token is " ")The let command prints rdval= but I presume this is due to the printf test statements getting in the way.I am getting no compile errors. Why does the C code not print the values specified?

View 2 Replies View Related

General :: Why Can The BIOS Only Read And Execute Code And Data From Only Cylinder 0, Track 0 And Sector 1

Feb 25, 2011

I was just reading about the whole boot process on computers and am curious as to why the BIOS can only read and execute code and data from only cylinder 0, track 0 and sector 1 of the disk being booted from? Why can't the BIOS read from any other disk location?

View 3 Replies View Related

Software :: Distro With TTS Support - Keyboard Shortcut Reads Selected Text Aloud

Sep 17, 2010

Which linux distros are set up to allow me to type a keyboard shortcut to read selected text aloud? Or allows TTS to read from the clipboard, as long as it watches the clipboard and starts to read when clipboard is updated.

View 1 Replies View Related

General :: Read/Write Xml File Through C++ Code?

Mar 18, 2011

I am trying to write a C++ Code to read write a XML file in C++.I researched a lot and find xerces is used for that but I am not able to write the code for that.Please provide me some links on how to run a code that R/W a xml file in C++.

View 1 Replies View Related

OpenSUSE :: Response To Keyboard Typing Delayed?

May 21, 2011

I have openSUSE 11.3 on my Lenovo Thinkpad X61. It has been running fine for many months, but yesterdaychanged. For example, between the two previous words I had actually typed "something" ("yesterday something changed") but it was lost. I type at normal speed but the machine cannot keep up. Hopelessly annoying. This happens in every application I have checked. The only unusual thing I did yesterday was to load a bunch of photos off a relative's digital camera. I'm concerned I may have picked up spyware.

View 3 Replies View Related

General :: Write Ns Code That Implements LEACH In A Network

Apr 25, 2010

I try to write a code that allows ns to simulate the operation of the leach protocol in a network but I can not find documentation that would allow me to do that. how should be the configuration of nodes and the base.

View 1 Replies View Related

General :: Execute A Program Based On A Keypress From A Specific USB Keyboard?

May 4, 2011

I've been given one of these ubiquitous usb-sleep buttons which is basically a supersimple usb-keyboard. It's a big button that sends a SLEEP keypress to the computer when you slam it. But that is pretty boring. I'd love to remap it to do something more fun but I can't figure out how to bind to only the sleep press from the button and not from my ordinary keyboard.

The button identifies as

Bus 001 Device 035: ID 1130:600d Tenx Technology, Inc.

I'd like to know if there's either

a way of mapping a key from a specific keyboard to an action OR a way of remapping the sleep key from a specific keyboard to a new key-code or something like that.

View 1 Replies View Related

Fedora :: Keyboard Gone Wonky - Speaker Beeps On Typing

Aug 11, 2009

The keyboard is acting strange ever since having to reinstall the gnome desktop, and sound alsa and pulseaudio. The lastest kernel update was what started the whole mess. What is happening is as I type about every 4 or so letter, the pc speaker beeps, and the status leds for caps lock, num lock and the third status leds turn on at random. When I hold down a key and have auto repeat kick in then for each character typed, there is an associated beep. I checked the keyboard setting in user preferences and there is a setting to enable beep on type, but it's not enabled, nor does changing the setting cause a change. I'm pretty sure it's just gnome related, as it doesn't occur in kde, but I can't be 100 % at this point.

View 4 Replies View Related

Ubuntu :: Activate Onscreen Keyboard OnBoard WITHOUT Typing?

Jul 23, 2011

My keyboard on my laptop has died but I'm on a working vacation, so in the meantime I really need to use my laptop. I cannot, for the life of me, figure out how to activate the on screen keyboard (onBoard) without typing, except at the log-in screen. There must be some sequence of mouse clicks to get there, otherwise that was a serious design flaw. The other posts I found here explained how to do it but only with typing involved.)

View 1 Replies View Related

Ubuntu :: Keyboard Delayed Typing When Xserver Starts

May 29, 2010

My keyboard was working fine then all of a sudden it started acting up. Now when I boot into linux the keyboard works fine till I start the Xsever. At first I thought that the keyboard stopped working so I restarted it and still had the same problem. I ended up restarting it 8 times then I finally started to hit the keyboard now when I was done hitting it I kinda kept my hand on it and noticed it still types but I have to hold it for a long period of time for it to start typing. I have to hold the button for like 1-2 Sec for it to type one letter. Then I checked the keyboard setting and they were fine.

View 2 Replies View Related

General :: Write Cpu Affinity Code To Map 8 Nodes To 8-cores Computer?

Jan 24, 2011

I have a 8 core computer, which has 8 logical processor in total. I want to create 8 process(nodes). Each node is mapped to each logical processor. The order is code...

I wrote the code as below, could you please see whether it is correct? code...

View 3 Replies View Related

Security :: Write Secure Code For Bash Scripts In General?

Feb 9, 2010

how to write secure code for bash scripts in general? Strangely I didn't found anything in google and in the forum so far. If someone here is willing to review a bash script for me (about 600 lines).

View 6 Replies View Related

Programming :: Write A Script StoredList That Takes Two Command Line Parameters?

Nov 28, 2010

This is the following exercise:Adapt this to write a script storedList that takes two command line parameters. The first parameter is the name of a directory, the second parameter is the name of a directory should be store i.e# ./storeList.sh /etc etcFilesListHow can you refer to the variables that represent the words passed in on the command line?

My Script's file:
#!/bin/bash
if test $# == 2

[code]...

View 4 Replies View Related

Debian :: Keyboard Skipping Letters And Continuously Typing Same Letter

Jan 30, 2016

I recently built my first computer which has Debian Jessie running on it.

Everything was running great until I updated the computer a few days ago. After doing that and turning it on a few hours later, the keyboard started missing letters (as in it wouldn't register every key click) and was also typing some letters over and over again. It seems that it doesn't matter what key I press, the same problem occurs.

I tried using the keyboard on my laptop; it worked perfectly. I also tried connecting up another keyboard I had laying around and that seemed to have the same issue. Both keyboards are mechanical.

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved